Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot generate localization files 🐛 #849

Closed
Matej-Hlatky opened this issue May 29, 2023 · 0 comments
Closed

Cannot generate localization files 🐛 #849

Matej-Hlatky opened this issue May 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Matej-Hlatky
Copy link
Contributor

Describe the bug

Recently added "Urdu" language in #832 breaks localization generation and possibility to modify existing or adding new languages.

To Reproduce
Steps to reproduce the behavior:

  1. Run flutter gen-l10n command
  2. See error below:
The arb file your_path/fluent_ui/lib/l10n/intl_ur.arb has the following formatting issue:
FormatException: Control character in string (at line 5, character 29)
  "searchLabel": "تلاش کریں,

Expected behavior
Can ran flutter gen-l10n command without issues to generate Dart localization files.

Additional context
The "searchLabel" value is not properly closed - see

"searchLabel": "تلاش کریں,

Then, also generated fluent_localizations_ur.dart file contains english values, instead of translated ones - see:
String get searchLabel => 'Search';

@bdlukaa bdlukaa added the bug Something isn't working label May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants