diff --git a/web/source/kmwuitoolbar.ts b/web/source/kmwuitoolbar.ts index eb15399a61..73fc9bb88b 100644 --- a/web/source/kmwuitoolbar.ts +++ b/web/source/kmwuitoolbar.ts @@ -531,7 +531,7 @@ if(!window['keyman']['ui']['name']) { var itemNode = ui.createNode('li'); kbdText = lang.keyboards[n]['Name'].replace(/\s?keyboard/i,''); // We append the full BCP-47 code here for disambiguation when regional and/or script variants exist. - kbdText = kbdText + " [" + lang.keyboards[n].LanguageCode + "]"; + kbdText = kbdText + " [" + lang.keyboards[n]['LanguageCode'] + "]"; aNode = ui.createNode('a', null, null, kbdText); aNode.href = '#'; aNode.title = '';