Add interpolation for fallback dialog messages
This commit is contained in:
parent
800c7ed31d
commit
afddc852cc
8 changed files with 61 additions and 47 deletions
|
@ -1,6 +1,7 @@
|
|||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const _ = require('lodash');
|
||||
const { setup } = require('../js/modules/i18n');
|
||||
|
||||
function normalizeLocaleName(locale) {
|
||||
if (/^en-/.test(locale)) {
|
||||
|
@ -58,7 +59,10 @@ function load({ appLocale, logger } = {}) {
|
|||
messages = english;
|
||||
}
|
||||
|
||||
const i18n = setup(appLocale, messages);
|
||||
|
||||
return {
|
||||
i18n,
|
||||
name: localeName,
|
||||
messages,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue