mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 15:02:33 +01:00
Update translated languages
This commit is contained in:
parent
91e716e5fe
commit
ea16203837
@ -1,6 +1,7 @@
|
|||||||
# Version 0.16.0 - 2020-07-??
|
# Version 0.16.0 - 2020-07-??
|
||||||
### Features
|
### Features
|
||||||
- Implement web notifications
|
- Implement web notifications
|
||||||
|
- Added languages: Galician, Croatian, Japanese, Russian
|
||||||
|
|
||||||
# Version 0.15.1 - 2020-06-26
|
# Version 0.15.1 - 2020-06-26
|
||||||
### Fixes:
|
### Fixes:
|
||||||
|
@ -8,8 +8,20 @@ class AppLocalizationsDelegate extends LocalizationsDelegate<L10n> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool isSupported(Locale locale) {
|
bool isSupported(Locale locale) {
|
||||||
return ['en', 'de', 'hu', 'pl', 'fr', 'cs', 'es', 'sk']
|
return [
|
||||||
.contains(locale.languageCode);
|
'en',
|
||||||
|
'de',
|
||||||
|
'hu',
|
||||||
|
'pl',
|
||||||
|
'fr',
|
||||||
|
'cs',
|
||||||
|
'es',
|
||||||
|
'sk',
|
||||||
|
'gl',
|
||||||
|
'hr',
|
||||||
|
'ja',
|
||||||
|
'ru',
|
||||||
|
].contains(locale.languageCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -49,6 +49,10 @@ class App extends StatelessWidget {
|
|||||||
const Locale('cs'), // Czech
|
const Locale('cs'), // Czech
|
||||||
const Locale('es'), // Spanish
|
const Locale('es'), // Spanish
|
||||||
const Locale('sk'), // Slovakian
|
const Locale('sk'), // Slovakian
|
||||||
|
const Locale('gl'), // Galician
|
||||||
|
const Locale('hr'), // Croatian
|
||||||
|
const Locale('ja'), // Japanese
|
||||||
|
const Locale('ru'), // Russian
|
||||||
],
|
],
|
||||||
locale: kIsWeb
|
locale: kIsWeb
|
||||||
? Locale(html.window.navigator.language.split('-').first)
|
? Locale(html.window.navigator.language.split('-').first)
|
||||||
|
Loading…
Reference in New Issue
Block a user