From f78ae399f2a49379e0790ee07d2d8b8988ea01ef Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 15 Apr 2018 05:22:16 +0900 Subject: wip --- src/build/i18n.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/build') diff --git a/src/build/i18n.ts b/src/build/i18n.ts index 57d6a20fd0..35204c34a4 100644 --- a/src/build/i18n.ts +++ b/src/build/i18n.ts @@ -55,12 +55,11 @@ export default class Replacer { public replacement(ctx, match, a, b, c) { const client = 'misskey/src/client/app/'; - const name = ctx ? ctx.src.substr(ctx.src.indexOf(client) + client.length) : null; + let name = null; let key = a || b || c; if (key[0] == '@') { - //if (name.startsWith('app/desktop/views/')) prefix = 'desktop.views.'; - //if (name.startsWith('app/mobile/views/')) prefix = 'mobile.views.'; + name = ctx.src.substr(ctx.src.indexOf(client) + client.length); key = key.substr(1); } -- cgit v1.2.3-freya