Browse Source

revert local-utils and typescriptize

Yuki Takei 3 years ago
parent
commit
e459cd7071
1 changed files with 1 additions and 5 deletions
  1. 1 5
      packages/app/src/client/util/locale-utils.ts

+ 1 - 5
packages/app/_obsolete/src/util/locale-utils.js → packages/app/src/client/util/locale-utils.ts

@@ -4,10 +4,6 @@ const DIAGRAMS_NET_LANG_MAP = {
   zh_CN: 'zh',
 };
 
-const getDiagramsNetLangCode = (lang) => {
+export const getDiagramsNetLangCode = (lang) => {
   return DIAGRAMS_NET_LANG_MAP[lang];
 };
-
-module.exports = {
-  getDiagramsNetLangCode,
-};