Styling and translations

This commit is contained in:
okbel
2018-03-26 12:06:38 -03:00
parent 2cf047a393
commit f8fbedd727
4 changed files with 71 additions and 16 deletions
+1
View File
@@ -136,6 +136,7 @@ export function t(key, ...replacements) {
replacements.forEach((str, i) => {
translation = translation.replace(new RegExp(`\\{${i}\\}`, 'g'), str);
});
return translation;
} else {
console.warn(`${lang}.${key} and en.${key} language key not set`);