Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDR-17078 kbd: fix chart breakage from keyboard to keyboard3 #3288

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/charts/keyboard/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ async function xmlList(basepath) {
* List of elements that are always arrays
*/
const alwaysArray = [
"keyboard.transforms",
"keyboard.transforms.transformGroup",
"keyboard.transforms.transformGroup.transform",
"keyboard3.transforms",
"keyboard3.transforms.transformGroup",
"keyboard3.transforms.transformGroup.transform",
];

/**
Expand Down
6 changes: 3 additions & 3 deletions docs/charts/keyboard/static/keyboard-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function unescapeStr(str) {
}

function getKeyboardLayers(id) {
let q = _KeyboardData.keyboards[id].keyboard.layers;
let q = _KeyboardData.keyboards[id].keyboard3.layers;
if (!Array.isArray(q)) {
q = [q];
}
Expand Down Expand Up @@ -86,7 +86,7 @@ function mogrifyAttrs(o) {
}

function getKeyboardKeys(id) {
const keys = _KeyboardData.keyboards[id].keyboard.keys.key || [];
const keys = _KeyboardData.keyboards[id].keyboard3.keys.key || [];
if (!keys) {
throw Error(`No keys for ${id}`);
}
Expand All @@ -96,7 +96,7 @@ function getKeyboardKeys(id) {
"@_base": "cldr",
"@_path": "techpreview/keys-Latn-implied.xml",
},
...(_KeyboardData.keyboards[id].keyboard.keys.import || []),
...(_KeyboardData.keyboards[id].keyboard3.keys.import || []),
];

const importedKeys = [];
Expand Down