Skip to content

Commit

Permalink
Adding Danish
Browse files Browse the repository at this point in the history
  • Loading branch information
Miroslav Mazel committed Nov 20, 2022
1 parent 3c751a5 commit ecec010
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ android {
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resConfigs "en", "ar", "cs", "de", "es", "fr", "hi", "id", "it", "ja", "ko", "nb-rNO", "pt", "ru", "tr", "zh-rCN", "zh-rTW"
resConfigs "en", "ar", "cs", "da", "de", "es", "fr", "hi", "id", "it", "ja", "ko", "nb-rNO", "pt", "ru", "tr", "zh-rCN", "zh-rTW"
multiDexEnabled true // required by flutter_local_notifications
}

Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/res/xml/locale_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<locale android:name="en"/>
<locale android:name="ar"/>
<locale android:name="cs"/>
<locale android:name="da"/>
<locale android:name="de"/>
<locale android:name="es"/>
<locale android:name="fr"/>
Expand Down
1 change: 1 addition & 0 deletions autotranslate.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
tt -c translation_credentials.json -f terms.flt -d l10n/en.flt -o l10n -l ar
tt -c translation_credentials.json -f terms.flt -d l10n/en.flt -o l10n -l cs
tt -c translation_credentials.json -f terms.flt -d l10n/en.flt -o l10n -l da
tt -c translation_credentials.json -f terms.flt -d l10n/en.flt -o l10n -l de
tt -c translation_credentials.json -f terms.flt -d l10n/en.flt -o l10n -l es
tt -c translation_credentials.json -f terms.flt -d l10n/en.flt -o l10n -l fr
Expand Down
1 change: 1 addition & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<string>en</string>
<string>ar</string>
<string>cs</string>
<string>da</string>
<string>de</string>
<string>es</string>
<string>fr</string>
Expand Down
7 changes: 7 additions & 0 deletions lib/data_providers/data/mock_data_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ class MockDataProvider extends DataProvider {
"coffee": "Kafe",
"app-development": "Vývoj aplikace"
},
"da": {
"administration": "Administration",
"mockups": "Mockups",
"ui-layout": "UI-Layout",
"coffee": "Kaffe",
"app-development": "App udvikling"
},
"de": {
"app-development": "App-Entwicklung",
"administration": "Verwaltung",
Expand Down
2 changes: 2 additions & 0 deletions lib/data_providers/l10n/fluent_l10n_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ class FluentL10NProvider extends L10NProvider {
return "العربية";
case "cs":
return "Čeština";
case "da":
return "Dansk";
case "de":
return "Deutsch";
case "en":
Expand Down
1 change: 1 addition & 0 deletions lib/l10n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class _L10NDelegate extends LocalizationsDelegate<L10N> {
'en',
'ar',
'cs',
'da',
'de',
'es',
'fr',
Expand Down
1 change: 1 addition & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ class _TimeCopAppState extends State<TimeCopApp> with WidgetsBindingObserver {
Locale('en'),
Locale('ar'),
Locale('cs'),
Locale('da'),
Locale('de'),
Locale('es'),
Locale('fr'),
Expand Down
1 change: 1 addition & 0 deletions lib/screens/settings/components/locale_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class LocaleOptions extends StatelessWidget {
.followedBy([
const Locale('ar'),
const Locale('cs'),
const Locale('da'),
const Locale('de'),
const Locale('en'),
const Locale('es'),
Expand Down
1 change: 1 addition & 0 deletions screenshots.android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ locales:
- cs
- en
- fr
- da
- de
- es
- hi
Expand Down
1 change: 1 addition & 0 deletions screenshots.ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ locales:
- en-CA
- cs
- fr-FR
- da
- de-DE
- es-ES
- it
Expand Down
1 change: 1 addition & 0 deletions test_driver/l10n/translate.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
tt -c ../../translation_credentials.json -f en.flt -o . -l ar
tt -c ../../translation_credentials.json -f en.flt -o . -l cs
tt -c ../../translation_credentials.json -f en.flt -o . -l da
tt -c ../../translation_credentials.json -f en.flt -o . -l de
tt -c ../../translation_credentials.json -f en.flt -o . -l es
tt -c ../../translation_credentials.json -f en.flt -o . -l fr
Expand Down

0 comments on commit ecec010

Please sign in to comment.