mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 03:05:51 +03:00
Fix gen-i18n.js script for .ts files
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a26a3f5862
commit
68608c2bcb
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ const walkOpts = {
|
||||||
const fullPath = path.join(root, fileStats.name);
|
const fullPath = path.join(root, fileStats.name);
|
||||||
|
|
||||||
let trs;
|
let trs;
|
||||||
if (fileStats.name.endsWith('.js') || fileStats.name.endsWith('.tsx')) {
|
if (fileStats.name.endsWith('.js') || fileStats.name.endsWith('.ts') || fileStats.name.endsWith('.tsx')) {
|
||||||
trs = getTranslationsJs(fullPath);
|
trs = getTranslationsJs(fullPath);
|
||||||
} else if (fileStats.name.endsWith('.html')) {
|
} else if (fileStats.name.endsWith('.html')) {
|
||||||
trs = getTranslationsOther(fullPath);
|
trs = getTranslationsOther(fullPath);
|
||||||
|
|
Loading…
Reference in a new issue