Skip to content

Commit

Permalink
feat: 替换国际化包的依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Nov 22, 2022
1 parent f03a5b1 commit b0b74d8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/gi-portal/.must.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
placeholder: variable => {
return `{${variable}}`;
},
dependencies: ['@ali/global-locale', '@ali/global-string-format'],
dependencies: ['@aligov/global-locale', '@aligov/global-string-format'],
},
babel: {
allowImportExportEverywhere: true,
Expand Down
5 changes: 4 additions & 1 deletion packages/gi-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"react": "17.x",
"react-dom": "17.x"
},
"dependencies": {},
"dependencies": {
"@aligov/global-locale": "^1.0.5",
"@aligov/global-string-format": "^1.0.7"
},
"author": "AntV",
"license": "MIT",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gi-portal/src/components/LanguageSwitch/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import locale from '@ali/global-locale';
import locale from '@aligov/global-locale';
import * as React from 'react';
import i18n from '../../i18n/index';
import './index.less';
Expand Down
8 changes: 4 additions & 4 deletions packages/gi-portal/src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
* This file is generated by parrot must
* DOCUMENT LIST:
* parrot must: http://gitlab.alibaba-inc.com/parrot/parrot-tool-must
* @ali/global-locale: http://gitlab.alibaba-inc.com/parrot/global-locale
* @ali/global-string-format: http://gitlab.alibaba-inc.com/parrot/global-string-format
* @aligov/global-locale: http://gitlab.alibaba-inc.com/parrot/global-locale
* @aligov/global-string-format: http://gitlab.alibaba-inc.com/parrot/global-string-format
*/

import locale from '@ali/global-locale';
import stringFormat from '@ali/global-string-format';
import locale from '@aligov/global-locale';
import stringFormat from '@aligov/global-string-format';
import strings from './strings';

let language; // Current language
Expand Down

0 comments on commit b0b74d8

Please sign in to comment.