-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat:站点资产国际化 #385
Merged
Merged
feat:站点资产国际化 #385
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
9ed6725
feat: 基于 react-intl 的资产国际化
b708bce
feat: merge master & fix conflicts
201dade
Revert "feat: merge master & fix conflicts"
a4ab454
feat: merge master
4148b6a
fix: 修复 locales 参数丢失
9e47d79
fix: hard code 当前语言环境(测试用)
686c6e9
feat: 单独提供当前语言环境
5e93188
feat: info & registerMeta 多语言方案
cd55448
feat: 统一命名范式
4244395
feat: 调整示例 locale 文件组织方式
e827613
feat: 修改 locales 为可选项
b5286b3
feat: locales for gi-site
Yanyan-Wang 62dac7f
chore: update button style for locale change
Yanyan-Wang 989b8e1
Merge pull request #389 from antvis/site-locale
pomelo-nwu 6c81055
feat: update
pomelo-nwu f6fbe5a
feat: 资产国际化更改为 must 方案 & basic 包国际化完成
726c732
feat: galaxybase 包国际化
7fd2315
feat: graphscope 包国际化
2ba5760
feat: HugeGraph 国际化
4167b7d
feat: janusgraph 国际化
d65042c
feat: neo4j 国际化
2d22a83
feat: gi-assets-scene 国际化
642bde9
feat: gi-assets-tugraph 国际化
d9ea1ab
feat: gi-common-components 国际化
238bc0a
feat: gi-assets-tugraph-analytics 国际化
a82c32c
feat: gi-assets-advance 国际化
b5da979
feat: gi-sdk 国际化
d590d78
Merge branch 'master' into feat/locale
pomelo-nwu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// more config: http://gitlab.alibaba-inc.com/parrot/parrot-tool-must/blob/master/doc/config.md | ||
module.exports = { | ||
extract: { | ||
name: 'gi-site', | ||
sourcePath: 'src', | ||
fileType: 'ts', | ||
prettier: true, | ||
macro: { | ||
path: 'src/i18n', | ||
method: '$i18n.get({id:"$key$",dm:"$defaultMessage$"})', | ||
import: 'import $i18n from "src/i18n"', | ||
keySplitter: '.', | ||
placeholder: variable => { | ||
return `{${variable}}`; | ||
}, | ||
dependencies: ['@aligov/global-locale', '@aligov/global-string-format'], | ||
}, | ||
babel: { | ||
allowImportExportEverywhere: true, | ||
decoratorsBeforeExport: true, | ||
plugins: [ | ||
'asyncGenerators', | ||
'classProperties', | ||
'decorators-legacy', | ||
'doExpressions', | ||
'exportExtensions', | ||
'exportDefaultFrom', | ||
'typescript', | ||
'functionSent', | ||
'functionBind', | ||
'jsx', | ||
'objectRestSpread', | ||
'dynamicImport', | ||
'numericSeparator', | ||
'optionalChaining', | ||
'optionalCatchBinding', | ||
], | ||
}, | ||
isNeedUploadCopyToMedusa: true, | ||
sourceLang: 'zh-CN', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pomelo-nwu @Yanyan-Wang
--openssl-legacy-provider是Node 17之后的flag,node 16下运行报错:
去掉后可以跑起来。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tyn1998 是的,我增加了一个scripts:https://github.com/antvis/G6VP/blob/chore/intl/packages/gi-site/package.json#L18