diff --git a/README.md b/README.md index a00713ecc..9265ce0b6 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,8 @@ The built code is automatically pushed to https://github.com/syuilo/misskey/tree 3. `npm install` ### Using source code +If you want to build Misskey manually, you can do it via `build` command after download the source code of Misskey and install dependencies: + 1. `git clone -b master git://github.com/syuilo/misskey.git` 2. `cd misskey` 3. `npm install` diff --git a/package.json b/package.json index 08232d3d3..f5927cb56 100644 --- a/package.json +++ b/package.json @@ -138,7 +138,7 @@ "riot": "3.5.0", "rndstr": "1.0.0", "s-age": "1.1.0", - "serve-favicon": "2.4.2", + "serve-favicon": "2.4.3", "subdomain": "1.2.0", "summaly": "2.0.3", "syuilo-password-strength": "0.0.1", diff --git a/webpack/module/rules/i18n.ts b/webpack/module/rules/i18n.ts index 0539e97db..3023253ca 100644 --- a/webpack/module/rules/i18n.ts +++ b/webpack/module/rules/i18n.ts @@ -13,6 +13,8 @@ export default (lang, locale) => ({ { pattern: /%i18n:(.+?)%/g, replacement: (_, key) => { let text = locale; + + // Check the key existance const error = key.split('.').some(k => { if (text.hasOwnProperty(k)) { text = text[k]; @@ -21,9 +23,10 @@ export default (lang, locale) => ({ return true; } }); + if (error) { console.warn(`key '${key}' not found in '${lang}'`); - return key; + return key; // Fallback } else { return text.replace(/'/g, '\\\'').replace(/"/g, '\\"'); }