slang
slang copied to clipboard
Type-safe i18n for Dart and Flutter
Hi thanks for this great lib that I use everyday :) I have some assets whose meta code is generated by https://pub.dev/packages/flutter_gen and hope i18n could support them. see https://github.com/FlutterGen/flutter_gen/issues/281...
current format only support space ``` "agreement(rich)": "you have read and agreed {{term(Terms of Service)}} and {{privacy(Privacy Policy)}}.", ``` param don't support 1. {{term(Terms-of-Service)}} 2. {{term(Terms of Service >)}} another...
**Describe the bug** When I run `flutter pub run build_runner build --delete-conflicting-outputs` with the following `build.yaml` the first time it generates the correct `translations.g.dart` file. But when I run the...
**Motivation** We have multiple apps (micro apps) using almost the same `build.yaml` file. It would be nice if we can have a base file to be used as reference. [lints...
**Motivation** To reduce asset size, developers can extract the translations to the server. The translations will be fetched at **runtime**. **Developer Experience** Because every key needs to be known at...
**Motivation** RichText has default parameters. Normal ones (StringText) shall have this feature too. **Developer Experience** Similar to RichText using brackets `(...)`, e.g. `Welcome {name(User)}` ``` String a = t.welcome(name: 'Tom');...
For my app the Locale comes out of a riverpod provider (`ref.watch(settingsControllerProvider.select((s) => s.appLocale())`) and I don't know how to connect this to the slang interface. For the `intl` module,...
**Describe the bug** Running slang apply duplicates map obkects into a non-mapped version **To Reproduce** Steps to reproduce the behavior: 1. Create en-US and fr-FR files 2. Add a map...
Hi and thanks for the awesome package! We use [ProtobufEnums](https://pub.dev/documentation/protobuf/latest/protobuf/ProtobufEnum-class.html) in our project which we would like to import as contexts. They are always generated in the form of `Example_Enum`...
The reason for this problem is: because I used only slang, but not inited Localizations in MaterialApp. In most cases, use only slang is enough for i18n strings. But showTimePicker()...