Skip to content
This repository was archived by the owner on May 19, 2026. It is now read-only.

Commit b0b74d8

Browse files
committed
feat: 替换国际化包的依赖
1 parent f03a5b1 commit b0b74d8

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

packages/gi-portal/.must.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
placeholder: variable => {
1414
return `{${variable}}`;
1515
},
16-
dependencies: ['@ali/global-locale', '@ali/global-string-format'],
16+
dependencies: ['@aligov/global-locale', '@aligov/global-string-format'],
1717
},
1818
babel: {
1919
allowImportExportEverywhere: true,

packages/gi-portal/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"react": "17.x",
2121
"react-dom": "17.x"
2222
},
23-
"dependencies": {},
23+
"dependencies": {
24+
"@aligov/global-locale": "^1.0.5",
25+
"@aligov/global-string-format": "^1.0.7"
26+
},
2427
"author": "AntV",
2528
"license": "MIT",
2629
"publishConfig": {

packages/gi-portal/src/components/LanguageSwitch/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import locale from '@ali/global-locale';
1+
import locale from '@aligov/global-locale';
22
import * as React from 'react';
33
import i18n from '../../i18n/index';
44
import './index.less';

packages/gi-portal/src/i18n/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
* This file is generated by parrot must
33
* DOCUMENT LIST:
44
* parrot must: http://gitlab.alibaba-inc.com/parrot/parrot-tool-must
5-
* @ali/global-locale: http://gitlab.alibaba-inc.com/parrot/global-locale
6-
* @ali/global-string-format: http://gitlab.alibaba-inc.com/parrot/global-string-format
5+
* @aligov/global-locale: http://gitlab.alibaba-inc.com/parrot/global-locale
6+
* @aligov/global-string-format: http://gitlab.alibaba-inc.com/parrot/global-string-format
77
*/
88

9-
import locale from '@ali/global-locale';
10-
import stringFormat from '@ali/global-string-format';
9+
import locale from '@aligov/global-locale';
10+
import stringFormat from '@aligov/global-string-format';
1111
import strings from './strings';
1212

1313
let language; // Current language

0 commit comments

Comments
 (0)