So a question: your front-end is something like React or Vue, that renders pages, or is the page a rendered HTML by Elixir (Phoenix or LiveView) and then you sprinkle JS on top of that?
If it’s the later then you should not have to do anything really, if it’s the former then it may be more complicated.
@hubertlepicki Actually it is the first option, to use translations in Vue and not to have duplicates.
Yesterday founded this lib - GitHub - change/linguist: Elixir Internationalization library for transaltions which is actually the standard i18n, so maybe I will use this one instead of gettext, because transforming yml to json is much easier than parsing .po, .pot files.
From my pov there is no standardization for how those files are structured. Each library seems to bring their own. Also most js libraries seem to like the idea of identifying translations by arbitrary keys whereas gettext doesn’t use any keys.