Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -134,7 +134,14 @@ export function checkI18nParity(options: I18nParityOptions = {}): I18nParityResu
|
||||
|
||||
if (existsSync(localesRoot)) {
|
||||
for (const entry of readdirSync(localesRoot, { withFileTypes: true })) {
|
||||
if (entry.isDirectory() && !configuredLocales.has(entry.name)) {
|
||||
// `<locale>-formal` dirs are intentionally-sparse Anrede ("Sie") override
|
||||
// bundles: they hold only the formal-variant strings and fall back to the
|
||||
// base locale via i18next `fallbackLng`. They are NOT in `supportedLocales`
|
||||
// (adding them would force full key parity on deliberately partial files),
|
||||
// so the unexpected-locale-dir guard must skip them. See `effectiveLng`
|
||||
// in `@hivegrid/i18n`.
|
||||
const isFormalOverrideDir = entry.name.endsWith("-formal") && configuredLocales.has(entry.name.slice(0, -"-formal".length));
|
||||
if (entry.isDirectory() && !configuredLocales.has(entry.name) && !isFormalOverrideDir) {
|
||||
issues.push({ type: "unexpected-locale-dir", locale: entry.name, directoryPath: path.join(localesRoot, entry.name) });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user