diff --git a/CHANGELOG.md b/CHANGELOG.md index 955739eb5..a5e81b7c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## next - Upgrade the `scroll_pos` dependency (from @WinXaito) to version v0.4.0 ([#831](https://github.com/bdlukaa/fluent_ui/pull/831)) +- Added support for Urdu language ([#832](https://github.com/bdlukaa/fluent_ui/pull/832)) + ## 4.5.1 diff --git a/README.md b/README.md index 23280c8f4..2fbb3cd83 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,7 @@ FluentUI widgets currently supports out-of-the-box an wide number of languages, - Turkish (@timurturbil) - Spanish (@henry2man) - Ukranian (@vadimbarda) +- Urdu (@sherazahmad720) - Uzbek (@bobobekturdiyev) If a language is not supported, your app may crash. You can [add support for a new language](#contributing-new-localizations) or use a supported language. [Learn more](https://github.com/bdlukaa/fluent_ui/issues/371) diff --git a/lib/l10n/generated/fluent_localizations.dart b/lib/l10n/generated/fluent_localizations.dart index 38f1abb82..9b679bfdc 100644 --- a/lib/l10n/generated/fluent_localizations.dart +++ b/lib/l10n/generated/fluent_localizations.dart @@ -34,6 +34,7 @@ import 'fluent_localizations_ta.dart'; import 'fluent_localizations_th.dart'; import 'fluent_localizations_tr.dart'; import 'fluent_localizations_uk.dart'; +import 'fluent_localizations_ur.dart'; import 'fluent_localizations_uz.dart'; import 'fluent_localizations_zh.dart'; @@ -150,6 +151,7 @@ abstract class FluentLocalizations { Locale('th'), Locale('tr'), Locale('uk'), + Locale('ur'), Locale('uz'), Locale('zh'), Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant') @@ -383,6 +385,7 @@ class _FluentLocalizationsDelegate 'th', 'tr', 'uk', + 'ur', 'uz', 'zh' ].contains(locale.languageCode); @@ -464,6 +467,8 @@ FluentLocalizations lookupFluentLocalizations(Locale locale) { return FluentLocalizationsTr(); case 'uk': return FluentLocalizationsUk(); + case 'ur': + return FluentLocalizationsUr(); case 'uz': return FluentLocalizationsUz(); case 'zh': diff --git a/lib/l10n/generated/fluent_localizations_ur.dart b/lib/l10n/generated/fluent_localizations_ur.dart new file mode 100644 index 000000000..b917896ea --- /dev/null +++ b/lib/l10n/generated/fluent_localizations_ur.dart @@ -0,0 +1,101 @@ +import 'fluent_localizations.dart'; + +/// The translations for Urdu (`ur`). +class FluentLocalizationsUr extends FluentLocalizations { + FluentLocalizationsUr([String locale = 'ur']) : super(locale); + + @override + String get backButtonTooltip => 'Back'; + + @override + String get closeButtonLabel => 'Close'; + + @override + String get searchLabel => 'Search'; + + @override + String get closeNavigationTooltip => 'Close Navigation'; + + @override + String get openNavigationTooltip => 'Open Navigation'; + + @override + String get clickToSearch => 'Click to search'; + + @override + String get modalBarrierDismissLabel => 'Dismiss'; + + @override + String get minimizeWindowTooltip => 'Minimize'; + + @override + String get restoreWindowTooltip => 'Restore'; + + @override + String get closeWindowTooltip => 'Close'; + + @override + String get dialogLabel => 'Dialog'; + + @override + String get cutActionLabel => 'Cut'; + + @override + String get copyActionLabel => 'Copy'; + + @override + String get pasteActionLabel => 'Paste'; + + @override + String get selectAllActionLabel => 'Select all'; + + @override + String get newTabLabel => 'Add new tab'; + + @override + String get closeTabLabelSuffix => 'Close tab'; + + @override + String get scrollTabBackwardLabel => 'Scroll tab list backward'; + + @override + String get scrollTabForwardLabel => 'Scroll tab list forward'; + + @override + String get noResultsFoundLabel => 'No results found'; + + @override + String get copyActionTooltip => 'Copy the selected content to the clipboard'; + + @override + String get cutActionTooltip => + 'Remove the selected content and put it in the clipboard'; + + @override + String get pasteActionTooltip => + 'Inserts the contents of the clipboard at the current location'; + + @override + String get selectAllActionTooltip => 'Select all content'; + + @override + String get hour => 'hour'; + + @override + String get minute => 'minute'; + + @override + String get am => 'AM'; + + @override + String get pm => 'PM'; + + @override + String get month => 'month'; + + @override + String get day => 'day'; + + @override + String get year => 'year'; +} diff --git a/lib/l10n/intl_ur.arb b/lib/l10n/intl_ur.arb new file mode 100644 index 000000000..965a2ccfc --- /dev/null +++ b/lib/l10n/intl_ur.arb @@ -0,0 +1,34 @@ +{ + "@@locale": "ur", + "backButtonTooltip": "آگے", + "closeButtonLabel": "بند", + "searchLabel": "تلاش کریں, + "closeNavigationTooltip": "نیویگیشن بند کریں۔", + "openNavigationTooltip": "نیویگیشن کھولیں۔", + "clickToSearch": "تلاش کرنے کے لیے کلک کریں۔", + "modalBarrierDismissLabel": "برطرف کریں", + "minimizeWindowTooltip": "کم سے کم کریں", + "restoreWindowTooltip": "بحال کریں", + "closeWindowTooltip": "بند کریں", + "dialogLabel": "ڈائیلاگ", + "cutActionLabel": "کاپی کریں", + "copyActionLabel": "کاپی کریں", + "pasteActionLabel": "پیسٹ کریں"، + "selectAllActionLabel": "سب کچھ منتخب کریں", + "newTabLabel": "نیا ٹیب کھولیں۔", + "closeTabLabelSuffix": "بند کریں", + "scrollTabBackwardLabel": "ٹیب کی فہرست کو پیچھے کی طرف اسکرول کریں۔", + "scrollTabForwardLabel": "ٹیب کی فہرست کو آگے اسکرول کریں۔", + "noResultsFoundLabel": "کوئی نتائج نہیں ملے۔", + "copyActionTooltip": "منتخب کردہ مواد کو کلپ بورڈ میں کاپی کریں۔", + "cutActionTooltip": "منتخب کردہ مواد کو ہٹائیں اور اسے کلپ بورڈ میں رکھیں", + "pasteActionTooltip": "کلپ بورڈ کے مواد کو موجودہ مقام پر داخل کریں۔", + "selectAllActionTooltip": "تمام مواد کو منتخب کریں۔", + "hour": "گھنٹہ", + "minute": "منٹ", + "am": "AM", + "pm": "PM", + "month": "مہینہ", + "day": "دِن", + "year": "سال", +} diff --git a/lib/l10n/untranslated.json b/lib/l10n/untranslated.json index ebea2f62e..01a721b71 100644 --- a/lib/l10n/untranslated.json +++ b/lib/l10n/untranslated.json @@ -47,6 +47,11 @@ "day", "year" ], + "ur": [ + + "am", + "pm" + ], "uk": [ "am", "pm"