MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / getI18nLocal

Function getI18nLocal

out/cli.cjs:67299–67307  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

67297 es_ES: ["es_ES", "Spanish", "espa\xF1ol"],
67298 sv: ["sv", "Swedish", "Svenska"],
67299 ru: ["ru", "Russian", "\u0440\u0443\u0441\u0441\u043A\u0438\u0439"],
67300 id_ID: ["id_ID", "Bahasa", "bahasa"],
67301 pl: ["pl", "Polish", "Polski"],
67302 tr: ["tr", "Turkish", "Turkish"],
67303 th: ["th", "Thai", "\u0E44\u0E17\u0E22"]
67304};
67305function getI18nLocal(value) {
67306 for (const key in I18N_CONFIG_ALIAS) {
67307 const aliases2 = I18N_CONFIG_ALIAS[key];
67308 if (aliases2.includes(value)) {
67309 return key;
67310 }

Callers 1

Calls 1

includesMethod · 0.80

Tested by

no test coverage detected