From 41f7e385473892dda6e3b92a76faa69190ddaafb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Wed, 17 May 2017 06:22:54 +0900 Subject: [PATCH 1/4] Update i18n.ts --- webpack/module/rules/i18n.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webpack/module/rules/i18n.ts b/webpack/module/rules/i18n.ts index 0539e97db4..3023253cab 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, '\\"'); } From 0c5054d37a27d63d88d6d53f29ae9341568e0d4d Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Tue, 16 May 2017 21:55:47 +0000 Subject: [PATCH 2/4] fix(package): update serve-favicon to version 2.4.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 08232d3d30..f5927cb561 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", From 95b49c961246c8f951269c778dbaadc3da5ce109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Wed, 17 May 2017 10:32:44 +0900 Subject: [PATCH 3/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a00713ecc0..49ce0afc40 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 source code of Misskey and install dependencies. + 1. `git clone -b master git://github.com/syuilo/misskey.git` 2. `cd misskey` 3. `npm install` From 5fbd55f714c554aa8e3122a226dced42ff33ef52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Wed, 17 May 2017 10:37:10 +0900 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 49ce0afc40..9265ce0b6b 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ 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 source code of Misskey and install dependencies. +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`