the last non-panel strings in officerdev are all never-translate (283 -> 281)
hooks holds two thrown Errors, already excluded as a neverTranslate category.
The AppRegistry duplicate-key message is a console.error — a log line for whoever is
reading a terminal, which the doc's list covers, so it is marked with i18n-exempt
rather than keyed.
Scanner: a namespaced storage key like `FULLSCREEN_PANEL:${workspace.key}` is an
identifier. The SCREAMING_CONSTANT rule missed it because the interpolated half is
lowercase. Verified the delta is exactly that key and the console line.
This commit is contained in:
@@ -30,6 +30,7 @@ export const findDuplicateKeys = (metas: AppRegistryMeta[]): string[] => [
|
||||
export const metasToRegistry = (metas: AppRegistryMeta[]): AppRegistryMap => {
|
||||
const duplicates = findDuplicateKeys(metas);
|
||||
if (duplicates.length > 0)
|
||||
// i18n-exempt: console diagnostic — read from a terminal, stays greppable in one language
|
||||
console.error(`AppRegistry: duplicate app key(s) ${duplicates.join(', ')} — one app is unreachable`);
|
||||
|
||||
return Object.fromEntries(metas.map(({ key, ...entry }) => [key, entry]));
|
||||
|
||||
Reference in New Issue
Block a user