-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Enable in-line Crowdin translations for logged in users/moderators #5610
Comments
Crowdin Docs: https://support.crowdin.com/in-context-localization/ This needs to be embedded in the |
The easiest would be to symlink an unused 2 language code (e.g. "ll") to "lol". I'm testing it on the dev server. There will be some issues to resolve though, first one I noticed is that $file_timestamps{'css/dist/app-' . lang('text_direction') . '.css'}; doesn't work at all if we have a crowdin identifier for lang('text_direction') |
@raphael0202 makes the point (probably valid) that we should disable the basic widget (not the inline thing which is not implemented yet) for non logged-in users. |
This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts |
What
Why
How
Integration
Add the following JavaScript snippet to your website, on the pages, where the widget should be displayed, right before the closing tag.
Note! Each person who clicks on the widget will have to choose from the list of all the project's target languages before contributing. If you want to skip this step – predefine the target language at the beginning, by adding the language code to the snippet. Please remember, that people will still be able to change the language in the widget settings.
Crowdin language codes
Here's how a part of the snippet with a predefined French target language looks like:
Part of
The text was updated successfully, but these errors were encountered: