mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 13:50:42 +08:00
fix(test): broken after adding content-only languages
This commit is contained in:
parent
ca757b20d5
commit
deb5d82c02
1 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,10 @@ function checkTranslations(translationDir: string, translationFileName: string)
|
||||||
const locales = i18n.getLocales();
|
const locales = i18n.getLocales();
|
||||||
|
|
||||||
for (const locale of locales) {
|
for (const locale of locales) {
|
||||||
|
if (locale.contentOnly) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const translationPath = path.join(translationDir, locale.id, translationFileName);
|
const translationPath = path.join(translationDir, locale.id, translationFileName);
|
||||||
const translationFile = fs.readFileSync(translationPath, { encoding: "utf-8" });
|
const translationFile = fs.readFileSync(translationPath, { encoding: "utf-8" });
|
||||||
expect(() => {
|
expect(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue