build: enhance tsconfig type check (#2732)

This commit is contained in:
Himself65
2023-06-09 01:42:58 +08:00
committed by GitHub
parent fc9a9f479b
commit b383ce36cd
34 changed files with 111 additions and 68 deletions

View File

@@ -102,6 +102,7 @@ export function setUpLanguage(i: i18n) {
}
return i.changeLanguage(language);
}
return void 0;
}
// const I18nProvider = I18nextProvider;

View File

@@ -1,6 +1,6 @@
// cSpell:ignore Tolgee
import fs from 'node:fs/promises';
import path from 'node:path';
import * as fs from 'node:fs/promises';
import * as path from 'node:path';
import { format } from 'prettier';

View File

@@ -1,16 +1,12 @@
// cSpell:ignore Tolgee
import { resolve } from 'node:path';
import { readFile } from 'fs/promises';
import path from 'path';
import { createsNewKey, getRemoteTranslations } from './api.js';
import type { TranslationRes } from './utils.js';
const BASE_JSON_PATH = path.resolve(
process.cwd(),
'src',
'resources',
'en.json'
);
const BASE_JSON_PATH = resolve(process.cwd(), 'src', 'resources', 'en.json');
const BASE_LANGUAGES = 'en' as const;
/**