forked from jonjia/vue-i18n-code-shift
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
138 additions
and
1 deletion.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
export default { | ||
test: 'test', | ||
}; |
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,7 @@ | ||
export default { | ||
world: 'world', | ||
hello: 'Hello', | ||
propertySubstitution: 'Property substitution', | ||
helloWorld: 'Hello, world', | ||
howToUse: 'How to use', | ||
}; |
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,7 @@ | ||
import common from './common'; | ||
import helloWorld from './helloWorld'; | ||
|
||
export default { | ||
common, | ||
helloWorld, | ||
}; |
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,47 @@ | ||
{ | ||
"vicsDir": "./.vics", | ||
"configFile": "./.vics/vics-config.json", | ||
"srcLang": "zh-CN", | ||
"distLangs": [ | ||
"en" | ||
], | ||
"langMap": { | ||
"en_US": "en", | ||
"en-US": "en", | ||
"en": "en" | ||
}, | ||
"baiduAppid": "20200602000482988", | ||
"baiduKey": "CF5_meZdDAOtDzVkn2Nv", | ||
"importI18N": "import I18N from '@/i18n';", | ||
"i18nPath": "@/i18n", | ||
"ignoreDir": [], | ||
"ignoreFile": [], | ||
"exportColConfig": [ | ||
"export_path", | ||
"业务线", | ||
"business_key", | ||
"描述(字典值)", | ||
"语料类型", | ||
"最长字符", | ||
"首字母大写", | ||
"语料说明图", | ||
"translatable", | ||
"formatted", | ||
"zh_CN" | ||
], | ||
"exportColIndexMap": { | ||
"businessLine": 1, | ||
"key": 3, | ||
"text": 10 | ||
}, | ||
"importColIndexMap": { | ||
"key": 3, | ||
"text": 11 | ||
}, | ||
"checkColIndexMap": { | ||
"key": 3, | ||
"zh-CN": 11, | ||
"en": 12 | ||
}, | ||
"prettierConfig": {} | ||
} |
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,3 @@ | ||
export default { | ||
test: '测试' | ||
}; |
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,7 @@ | ||
export default { | ||
world: '世界', | ||
hello: '你好', | ||
propertySubstitution: '属性替换', | ||
helloWorld: '你好,世界', | ||
howToUse: '如何使用', | ||
}; |
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,7 @@ | ||
import common from './common'; | ||
import helloWorld from './helloWorld'; | ||
|
||
export default { | ||
common, | ||
helloWorld, | ||
}; |
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,6 @@ | ||
import I18N from '@/i18n'; | ||
console.log(I18N.t('helloWorld.hello'), I18N.t('helloWorld.world')); | ||
|
||
|
||
|
||
|
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,17 @@ | ||
<template> | ||
<div class="hello"> | ||
<h1>{{ $t('helloWorld.howToUse') }}<h1> | ||
<p>{{ $t('helloWorld.helloWorld') }}</p> | ||
<input :placeholder="$t('helloWorld.propertySubstitution')" /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import I18N from '@/i18n'; | ||
export default { | ||
name: 'HelloWorld', | ||
mounted() { | ||
console.log(I18N.t('helloWorld.hello'), I18N.t('helloWorld.world')) | ||
} | ||
} | ||
</script> |
Binary file not shown.
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 @@ | ||
console.log('你好', '世界'); |
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,16 @@ | ||
<template> | ||
<div class="hello"> | ||
<h1>如何使用<h1> | ||
<p>你好,世界</p> | ||
<input placeholder="属性替换" /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'HelloWorld', | ||
mounted() { | ||
console.log('你好', '世界') | ||
} | ||
} | ||
</script> |