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

Translation editing and live reload #83

Open
kellpossible opened this issue Feb 10, 2022 · 2 comments
Open

Translation editing and live reload #83

kellpossible opened this issue Feb 10, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@kellpossible
Copy link
Owner

  • It would be very nice to have a library that can interface with this system and provide translation editing capabilities in the form of a web interface which can be optionally embedded with a user's application in support of translation efforts (they can distribute a special build to translators).
  • It would also be nice to have some support in i18n-embed for a live reload from file system for people editing files by hand. Perhaps using notify.
@kellpossible
Copy link
Owner Author

kellpossible commented May 14, 2023

While working on https://github.com/kellpossible/avalanche-report , it's very annoying to edit or update translations, it requires a recompile. When working with localizations in dynamic templates which support live reload (via https://docs.rs/minijinja-autoreload/latest/minijinja_autoreload/ ), it is especially apparent that this a live reload feature would be very nice to have to completely avoid a rust compile cycle. The design for this feature could be inspired by the minijinja autoreload library.

kellpossible added a commit that referenced this issue Aug 8, 2024
Partially addresses #83 and provides support for autoreloading of languages on the file system and when using rust-embed in debug builds.
Also provides support for overriding translations using multiple sources, useful for software that will be customized by the end user (such as avalanche-report) , or perhaps for an eventual implementation of in-place translation editing for #83
@wiiznokes
Copy link

I don't know the internal of this crate, but could it be possible to add a build.rs file to rebuild what is necessary for the fl! macro to work ? (https://users.rust-lang.org/t/equivalent-of-cargo-rerun-if-changed-for-procedural-macros/37036)

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

No branches or pull requests

2 participants