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

Add tool for translators showing translation keys #662

Open
wbazant opened this issue Jan 13, 2025 · 1 comment · May be fixed by #664
Open

Add tool for translators showing translation keys #662

wbazant opened this issue Jan 13, 2025 · 1 comment · May be fixed by #664
Assignees
Labels
enhancement New feature request good first issue Good for newcomers translation

Comments

@wbazant
Copy link
Collaborator

wbazant commented Jan 13, 2025

In the live site, we can add i18n_viz=1to the URL and have it show translation keys, e.g. https://fallingfruit.org/locations/new?c=forager%2Cfreegan&locale=en&location_id=1989825&i18n_viz=1 , with a click leading to a translation key page in Phrase (although with broken link). Let's do something similar - since the site is in beta, we can just have a checkbox to enable it: "show translation keys (for translators)".

For implementation simplicity, we can also add it as a language setting, "Translation keys (for translators)", and then a translator can just have two windows open at once.

Try to create a convenient experience for volunteers.

@wbazant wbazant added enhancement New feature request translation good first issue Good for newcomers labels Jan 13, 2025
@wbazant wbazant self-assigned this Jan 14, 2025
@wbazant wbazant linked a pull request Jan 14, 2025 that will close this issue
@wbazant
Copy link
Collaborator Author

wbazant commented Jan 14, 2025

I ended up integrating it just as a search param, and following the live site:

  • yellow background behind translation keys (except a gold background behind html elements and a text used for placeholder values)
  • title (so you can hover over and see the value)
  • click handler (copies to clipboard)
  • magic search param value, ?i18n_viz=keys swaps key and translation (so we can document it as ?i18n_viz=keys and ?i18n_viz=values)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request good first issue Good for newcomers translation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant