Skip to content

Commit

Permalink
Merge pull request #415 from drpshtiwan/master
Browse files Browse the repository at this point in the history
Add Kurdish Sorani Language
  • Loading branch information
larryaasen committed May 29, 2024
2 parents 2fd7bff + bc4ffc6 commit 03f6c63
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ UpgradeAlert(Upgrader(messages: MyUpgraderMessages()));

## Language localization

The strings displayed in `upgrader` are already localized in 34 languages. New languages will be
The strings displayed in `upgrader` are already localized in 35 languages. New languages will be
supported in the future with minor updates. It also supports right to left languages.

Languages supported:
Expand All @@ -395,6 +395,7 @@ Languages supported:
* Kazakh ('kk')
* Khmer ('km')
* Korean ('ko')
* Kurdish Sorani ('ku')
* Lithuanian ('lt')
* Mongolian ('mn')
* Norwegian ('nb')
Expand All @@ -410,6 +411,7 @@ Languages supported:
* Ukrainian ('uk')
* Vietnamese ('vi')


The `upgrader` package can be supplied with additional languages in your code by extending the `UpgraderMessages` class
to provide custom values.

Expand Down
19 changes: 19 additions & 0 deletions lib/src/upgrade_messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ class UpgraderMessages {
message =
'{{appName}}有新的版本!您拥有{{currentInstalledVersion}}的版本可更新到{{currentAppStoreVersion}}的版本。';
break;
case 'ku':
message =
'وەشانی نوێی {{appName}} بەردەستە! وەشانی {{currentAppStoreVersion}} بەردەستە- تۆ وەشانی {{currentInstalledVersion}} دابەزاندوە.';
break;
case 'en':
default:
message =
Expand Down Expand Up @@ -470,6 +474,8 @@ class UpgraderMessages {
break;
case 'zh':
message = '以后';
case 'ku':
message = 'دواتر';
break;
case 'en':
default:
Expand Down Expand Up @@ -584,6 +590,9 @@ class UpgraderMessages {
case 'zh':
message = '更新';
break;
case 'ku':
message = 'نوێکردنەوە';
break;
case 'en':
default:
message = 'UPDATE NOW';
Expand Down Expand Up @@ -697,6 +706,9 @@ class UpgraderMessages {
case 'zh':
message = '您现在要更新应用程序吗?';
break;
case 'ku':
message = 'دەتەوێت ئێستا نوێی بکەیەوە؟';
break;
case 'en':
default:
message = 'Would you like to update it now?';
Expand Down Expand Up @@ -754,6 +766,10 @@ class UpgraderMessages {
message = 'Yayın Notları';
break;

case 'ku':
message = 'تیبینەکانی وەشان';
break;

case 'bn':
case 'el':
case 'fa':
Expand Down Expand Up @@ -886,6 +902,9 @@ class UpgraderMessages {
case 'zh':
message = '更新应用程序?';
break;
case 'ku':
message = 'نوێکردنەوەی ئەپ؟';
break;
case 'en':
default:
message = 'Update App?';
Expand Down

0 comments on commit 03f6c63

Please sign in to comment.