revert(core): unmerge i18n stack base (#1707)

Co-authored-by: Wesley Luyten <me@wesleyluyten.com>
This commit is contained in:
Sam Potts
2026-06-18 15:20:35 -07:00
committed by GitHub
co-authored by Wesley Luyten
parent f0f9eed544
commit edfec1c93e
245 changed files with 455 additions and 5647 deletions
@@ -1,20 +0,0 @@
import { mkdirSync, writeFileSync } from 'node:fs';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { SHIPPED_LOCALE_TAGS } from '../../core/src/core/i18n/built-in-locales.ts';
const REGISTRY = '@videojs/html/cdn/i18n-registry';
const outDir = resolve(dirname(fileURLToPath(import.meta.url)), '../src/cdn/locales');
const tags = SHIPPED_LOCALE_TAGS;
mkdirSync(outDir, { recursive: true });
for (const tag of tags) {
const body = `import { registerI18n } from '${REGISTRY}';
import translations from '@videojs/core/i18n/locales/${tag}';
registerI18n('${tag}', translations);
`;
writeFileSync(resolve(outDir, `${tag}.ts`), body);
}