瀏覽代碼

revert local-utils and typescriptize

Yuki Takei 3 年之前
父節點
當前提交
e459cd7071
共有 1 個文件被更改,包括 1 次插入5 次删除
  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,
-};