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
Some usage questions #5
Comments
Hello! Thanks for your interest in this project 😄
The generated
The translation strings are actually directly used in the
The variables do need to have the same name, otherwise the parsing fails. This allows to have multiple variables that are not in the same order in the different translations. I plan to rewrite the entire parser and code generator in a next release to support more syntaxes (like variables with two braces or nested keys) and maybe consider other file formats than json (like Fluent). |
Thats it. I would suggest you add an example in the readme/documentation, because its not mentioned anywhere, and wasnt clear to me at all.
Okay i will see how to fix our translation files then.
Any rough estimate how long this rewrite would take? Like if its a matter of weeks, or months, to determine whether i should wait for the new version, or change our files for now. |
I haven't much free time right now, I think I'll start working on it in the next month or two. |
Great, thank you :) |
Thank you for this library! There are very few options for using json localization files in Rust, and this looks like the best one. There are some things which are unclear though, and I hope you can explain them to me:
Lang::En.hello()
, but i need something likeget_string("en", "hello")
in order to select the language at runtime.Thanks in advance :)
The text was updated successfully, but these errors were encountered: