excel2l10n 1.0.1
excel2l10n: ^1.0.1 copied to clipboard
A tool to convert excel to l10n files.
1.0.1 #
- The Dart formatter now respects the target project's
analysis_options.yaml—formatter.page_widthandformatter.trailing_commasare automatically picked up, and the language version is derived from the project'spubspec.yamlSDK constraint.
1.0.0 #
- Introduced a structured
L10nItemsealed class hierarchy:SimpleItem,PlaceholderItem,PluralItem,SelectItem,OrdinalItem,IcuItem. - Refactored
L10nSheetwith a three-phase parsing pipeline (raw rows → key grouping → type inference). - Supported typed placeholders via
{name:type}syntax (int,double,num,datetime). - Added
@plural(var),@select(var),@ordinal(var)annotations for multi-form entries usingkey[form]sub-key rows. - Added
@icuannotation for raw ICU string pass-through. - Annotation in
descriptionnow accepts trailing text as the entry's human-readable description (e.g.@select(gender)\n性别称谓). - Extended
TextSpangeneration toPluralItem,SelectItem, andOrdinalItemin thelocalizationstarget, usingintl.Intl.pluralLogic/selectLogic. localizationstarget now skipsIcuItementries with a stderr warning instead of emitting invalid code.- Updated
arbandgetxtargets to handle all new item types (ICU strings for complex forms). - Added
--config/-cCLI flag to specify a custom config file path.
0.1.5 #
- Bump Dart About packages version.
0.1.4 #
- User
InlineSpaninstead ofTextSpanwhen generatingplaceholders.
0.1.3 #
- Optimize generating
TextSpanfor targetlocalizations. It will not generateTextSpan(text: '').
0.1.2+1 #
- Fix extension error when build extension mixin for target
localizations
0.1.2 #
-
Add feature extension for target
localizations.You can write your
excel2l10n.yamllike this:```yaml target: name: localizations genExtension: true ```to additional generate a base class for your
localizationsclass.You can write your own localizations as a supplement. And it will not be overwritten by subsequent generation operations.
0.1.1+1 #
- Fix escaping error when build get String method for target
localizations
0.1.1 #
- Add feature escaping for target
localizations
0.1.0 #
- Relaxing dart version restrictions 3.5.3->3.3.0
0.0.3 #
-
Basic implement target localizations.
What's different with target
arb:- No need to generate
.arbfile, directly generate.dartfile. - Generate
TextSpanforplaceholders. It means you can useText.richto display the value. - Other features supported are the same as target
arb.
- No need to generate