mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
build: enhance tsconfig type check (#2732)
This commit is contained in:
@@ -102,6 +102,7 @@ export function setUpLanguage(i: i18n) {
|
||||
}
|
||||
return i.changeLanguage(language);
|
||||
}
|
||||
return void 0;
|
||||
}
|
||||
|
||||
// const I18nProvider = I18nextProvider;
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user