This commit is contained in:
syuilo
2018-06-18 09:54:53 +09:00
parent a766faeae9
commit 80e5645a84
150 changed files with 305 additions and 2334 deletions

View File

@@ -2,7 +2,7 @@
* Replace i18n texts
*/
import locale, { isAvailableLanguage, LocaleObject, LocaleObjectChildren } from '../../locales';
import locale, { isAvailableLanguage, LocaleObject } from '../../locales';
export default class Replacer {
private lang: string;
@@ -24,7 +24,7 @@ export default class Replacer {
const texts = locale[this.lang];
let text: LocaleObjectChildren = texts;
let text = texts;
if (path) {
if (text.hasOwnProperty(path)) {