Migrate to lingui

Switch to "lingui" for better DX.
Tried to persist existing languages as much as possible.

Removed "vite-plugin-node-polyfills" because it's incompatible with "lingui"
This commit is contained in:
schroda
2026-01-10 19:45:02 +01:00
parent c1ac58f4d6
commit 65a9a905be
287 changed files with 120766 additions and 37748 deletions

View File

@@ -77,7 +77,7 @@ export const getWeblateLanguageStatsFor = (
const langaugeStats = stats.find((stat) => normalizeCode(stat.code) === normalizeCode(code));
if (!langaugeStats) {
throw new Error(`Weblate language stats for "${code} do not exist`);
throw new Error(`Weblate language stats for "${code}" do not exist`);
}
return langaugeStats;