In Flutter I want to set Locale to use apart from English, also Serbian language. Problem is that for English it's easy and it goes like this:
Locale('en', 'US')
And it includes regular file in lang folder named en.json
But for Serbian locale there are Cyrillic and Latin, and I need 2 files included, and I need 2 locales loaded. From the Flutter docs for Locale I've found this and it says:
Type: variant
Subtag: ekavsk
Description: Serbian with Ekavian pronunciation
Prefix: sr
Prefix: sr-Latn
Prefix: sr-Cyrl
Added: 2013-12-02
I've tried loading it with
Locale('sr-Cyrl', 'RS')
And naming the file sr-Cyrl_rs.json but that crashes with log message Warning: This application's locale, sr-Cyrl_RS, is not supported by all of its localization delegates.
What am I missing?