LocaleKeys from json file? #423
Unanswered
jasonjflaherty
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a separate json file to load some other data into my application. I have a local_keys.g.dart file generated and would like to use these keys, but have them loaded from the json file. Using a ListView.builder inside a FutureBuilder<>... it builds out the list correctly.
I am thinking that I need to re-initialize or rebuild the EasyLocationalization.
Example json:
However, this just prints the exact text from the file and then throws the log warning:
[🌎 Easy Localization] [WARNING] Localization key [LocaleKeys.withinna_harvesting_name] not found�[0m
Is this not a valid way to do this? Is there options for initializing "after" the futurebuider?
fyi... If I enter directly it will translate it: tr(LocaleKeys.withinna_harvesting_name), so the easy_localization is working great, but I do not want to manually enter these names if possible.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions