-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add localization #20
Comments
Closed pending user action |
Great app! Would be nice to have a German localization. I am happy to translate if you tell me what to do. |
Thanks for the interest! Unfortunately, I decided localization is out of the scope of the app for now. If that changes I’ll be sure to reopen this issue. |
Understand. The UI is fine for me. Its more about the foods. Is there a possibility to edit the basic foods and give them local names? Then I just change it for me |
Huh! That’s an interesting idea. Let me think about that. I would have to think of a way to do it but I think it is feasible. |
https://github.com/successible/cleanslate/blob/main/src/basicFoods.json Ok, let's try this! I willing to try to add this gradually. All the basic foods are defined in that file. I added the locale. See line 16 to 17. I used the German (de) language code and I set the key:value property with Google Translate as an example. You can set any key:value pair and the app (in theory, once I code it in) should use it. We are going to have to discuss like interface and stuff later, but let us start with the basics. You can submit a pull request for updates to the basicFoods.json and we can go from there. Let me know if you have questions. I would only do name and maybe(?) countName if you wanted too. The reset are reused values, like categories and TBSP. |
Cool, thank you! I will translate the file this weekend and will open a PR |
Sounds good! |
Merged your PR. Now time to discuss behavior. |
Nice, maybe I don't understand your question but when type in "Karto" then Kartoffel (Potato) should be found |
Right but should there be like a mode in Settingd to turn on - say German? And if you search for English for the word as well, should it turn up? Curious on your thoughts. |
I am inclined to just keep everything in English and if a word matches in a foreign language to just have that name and the countName in the interface change and then I guess in the log as well. |
Ah I see, I think mostly this would be fine if also english food matches but there are foods that are named identical/almost similar like |
I will have to play around with it - but that’s a good point. I will work on it this weekend |
Hey @parnoldx just wanted to let you know I didn’t forget about this but I have been super busy recently. Not sure when I’ll get around to it but just wanted to let you know. |
Thank you for letting me know. |
No description provided.
The text was updated successfully, but these errors were encountered: