ibm-ecm / ibm-content-navigator-samples

Apache License 2.0
19 stars 21 forks source link

Add additional language resource bundles to ICN #20

Closed qi-wang closed 2 years ago

qi-wang commented 2 years ago

The gradle build script was last updated for ICN 309. The ecm.js of ICN 309 has locales line like

(["dojo/i18n!*preload*ecm/nls/ecm*[\"ar\",\"cs\",\"ca\",\"da\",\"de\",\"el\",\"en\",\"en-ca\",\"en-gb\",\"es\",\"fi\",\"fr\",\"fr-ca\",\"he\",\"hr\",\"hu\",\"it\",\"ja\",\"kk\",\"ko\",\"nb-no\",\"nl\",\"no\",\"pl\",\"pt\",\"pt-br\",\"ru\",\"ro\",\"sk\",\"sl\",\"sv\",\"th\",\"tr\",\"vi\",\"zh\",\"zh-cn\",\"zh-tw\",\"ROOT\"]"]);

yet ICN 3012 has locales like

(['dojo/i18n!*preload*ecm/nls/ecm*["ar","cs","ca","da","de","el","en","en-ca","en-gb","es","fi","fr","fr-ca","he","hr","hu","it","ja","kk","ko","nb-no","nl","no","pl","pt","pt-br","ru","ro","sk","sl","sv","th","tr","vi","zh","zh-cn","zh-tw","ROOT"]'])}}});

Revised the script that adds additional languages to make it work for ICN 3012.

qi-wang commented 2 years ago

@andychoi-ibm Andy, I've added another commit to make the change work for both ICN 3012 and 309. Can you review again? Thanks.