summaryrefslogtreecommitdiff
path: root/src/build
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-15 05:22:16 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-15 05:22:16 +0900
commitf78ae399f2a49379e0790ee07d2d8b8988ea01ef (patch)
tree95eb47c2ec97b040bfe6e067a0dc436dc26fba5a /src/build
parentwip (diff)
downloadsharkey-f78ae399f2a49379e0790ee07d2d8b8988ea01ef.tar.gz
sharkey-f78ae399f2a49379e0790ee07d2d8b8988ea01ef.tar.bz2
sharkey-f78ae399f2a49379e0790ee07d2d8b8988ea01ef.zip
wip
Diffstat (limited to 'src/build')
-rw-r--r--src/build/i18n.ts5
1 files changed, 2 insertions, 3 deletions
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);
}