Skip to content

Commit e94c13c

Browse files
committed
fix(i18n): narrow a marketplace catalogue code to a table tag before indexing its loader
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibyWSiXh6B2sMVHfXYC
1 parent 7e8ce6e commit e94c13c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • ui/packages/i18n/src/namespaces/marketplace

‎ui/packages/i18n/src/namespaces/marketplace/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const MARKETPLACE_LANGUAGE_CODES: readonly string[] = Object.freeze(Objec
126126
const own = (record: object, key: string): boolean =>
127127
Object.prototype.hasOwnProperty.call(record, key);
128128

129-
const hasMarketplaceCatalogue = (code: string): boolean => own(MARKETPLACE_LOADERS, code);
129+
const hasMarketplaceCatalogue = (code: string): code is PlatformLocaleTag => own(MARKETPLACE_LOADERS, code);
130130

131131
/**
132132
* The tag of the catalogue that serves `lang`, read the way the packs resolve —

0 commit comments

Comments
 (0)