Combine and reuse translations for keyboard shortcuts
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
This commit is contained in:
parent
e3a9f6206f
commit
09f987ea07
9 changed files with 156 additions and 66 deletions
|
|
@ -48,7 +48,7 @@ BR.RoutingOptions = L.Evented.extend({
|
|||
|
||||
// append shortcut text to tooltip
|
||||
var button = $('#profile-alternative-form button')[0];
|
||||
button.title = button.title + i18next.t('navbar.profile-tooltip');
|
||||
button.title = button.title + i18next.t('navbar.profile-tooltip', { key: 'G' });
|
||||
},
|
||||
|
||||
getOptions: function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue