Exposing components for translation mapping; Queue and AAlbum views now moved to translation file

This commit is contained in:
James Barnsley
2020-07-06 20:22:39 +12:00
parent 1158fb7c2f
commit fca28ada88
9 changed files with 221 additions and 147 deletions

View File

@ -8,7 +8,6 @@ const PARAMS_REG_EXP = '%{(.*?)}';
const paramsRegExp = new RegExp(PARAMS_REG_EXP, 'g');
const content = (path, params = {}, transform) => {
console.log(window.language);
const dictionary = dictionaries[window.language || 'en'] || dictionaries.en;
let value = get((dictionary), path, '');