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

Combine and reuse translations for keyboard shortcuts #317

Merged
merged 4 commits into from
Jun 22, 2020
Merged

Combine and reuse translations for keyboard shortcuts #317

merged 4 commits into from
Jun 22, 2020

Conversation

rkflx
Copy link
Contributor

@rkflx rkflx commented Jun 20, 2020

Using i18next's "nesting" and "interpolation" features should reduce the overall number of strings to translate, as well as provide a standardized pattern for shortcut tooltips (if applicable).

Note that this approach is still allowing for flexibility regarding differently structured sentences in each language.

Resolves #315

Bonus commits:

  • Run yarn lint, yarn prettier and yarn build i18next
  • Add warning regarding yarn build i18next / gulp i18next
  • Switch to next tab with Shift+T shortcut even if tab is currently closed

0d6cd61 was still missing some style fixes, making `yarn` touch
unrelated files on a subsequent `git commit`.
Also mention what is done by maintainers.
Often users can remember what the recently opened tab was, so we can
switch to and open the next tab immediately, saving one keypress. There
is a dedicated shortcut (T) for only opening a tab, after all.

While the previous behavior for Shift+T (open tab without switching to
next if currently closed) was by intention, user testing found that the
new approach might be more desirable.
Using i18next's "nesting" and "interpolation" features should reduce the
overall number of strings to translate, as well as provide a
standardized pattern for shortcut tooltips (if applicable).

Note that this approach is still allowing for flexibility regarding
differently structured sentences in each language.

Resolves #315
@nrenner nrenner merged commit fa59a44 into nrenner:master Jun 22, 2020
@nrenner
Copy link
Owner

nrenner commented Jun 22, 2020

Thanks!

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

Successfully merging this pull request may close these issues.

Combine and reuse translations?
2 participants