localizely / flutter-intl-intellij

This Android Studio & IntelliJ plugin generates boilerplate code for localization of Flutter apps with official Dart Intl library
MIT License
129 stars 4 forks source link

Support for scripts #96

Closed deakjahn closed 1 year ago

deakjahn commented 1 year ago

This older comment suggests that scripts are already supported by the plugin:

Originally posted by @goranluledzija in https://github.com/localizely/flutter-intl-intellij/issues/10#issuecomment-600051216

However, I can't see any way to make use of them. I'm trying to add Serbian in both Cyrillic and Latin scripts. The Cyrillic file is named intl_sr.arb while the Latin one intl_sr_latn.arb, with the same language_script codes specifiied in the @@locale entry. Still, specifying

locale: const Locale.fromSubtags(languageCode: 'sr', scriptCode: 'latn'),

in my MaterialApp constructor shows the app with the Cyrillic script, not the Latin one.

deakjahn commented 1 year ago

Latn, not latn. Sorry. It works.