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

Tool generates wrong string to load json on Windows #89

Open
lucavg opened this issue Apr 19, 2023 · 0 comments
Open

Tool generates wrong string to load json on Windows #89

lucavg opened this issue Apr 19, 2023 · 0 comments

Comments

@lucavg
Copy link

lucavg commented Apr 19, 2023

When running the translation tool on Windows 11, line 44 of lib/util/locale/localization.dart should contain
final jsonContent = await (bundle ?? rootBundle).loadString('assets/locale/${locale.toLanguageTag()}.json;', cache: useCaching);
but instead contains
final jsonContent = await (bundle ?? rootBundle).loadString('assets\locale/${locale.toLanguageTag()}.json', cache: useCaching);

The forward slash near assets/locale gets replaced with a backslash. This was tested on Windows 11, Ubuntu 22.04 and EndeavourOS, only Windows 11 generated a backslash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant