Skip to content

Commit

Permalink
chore(developer): update comments per review
Browse files Browse the repository at this point in the history
- note that 45,46,47 are the same data and so aliased

Fixes: #11307
  • Loading branch information
srl295 committed Jan 31, 2025
1 parent b35ba06 commit b54ea40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/include/ldml/keyman_core_ldml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ class Constants {
}
};

/** There's no data or DTD change in 45, 46, 46.1, 47 so map them all to 46 at present. */
const cldrTreatAsLatest: Set<string> = new Set(['45', '46.1', '47']);

export const constants = new Constants();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export class LDMLKeyboardXMLSourceFileReader {
return false;
}
if (constants.treatAsLatest(paths[0])) {
/** There's no data or DTD change in 45, 46, 46.1, 47 so map them all to 46 at present. */
paths[0] = constants.cldr_version_latest;
}
importData = this.readImportFile(paths[0], paths[1]);
Expand Down

0 comments on commit b54ea40

Please sign in to comment.