diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 3a1efe5..bd4857f 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -56,6 +56,7 @@ module.exports = { 'at-ui-lib': path.resolve(__dirname, '../src/index.js'), 'at-ui-locale-zh': path.resolve(__dirname, '../src/locale/lang/zh-CN.js'), 'at-ui-locale-en': path.resolve(__dirname, '../src/locale/lang/en-US.js'), + 'at-ui-locale-tr': path.resolve(__dirname, '../dist/locale/tr-TR.js'), 'at-ui-style': 'stylesheet/src/index.scss', 'vue': 'vue/dist/vue.js' } diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 61f9044..79f08bc 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -32,7 +32,8 @@ const webpackConfig = merge(baseWebpackConfig, { 'at-ui-lib': path.resolve(__dirname, '../dist/at.js'), 'at-ui-style': 'stylesheet/css/at.css', 'at-ui-locale-zh': path.resolve(__dirname, '../dist/locale/zh-CN.js'), - 'at-ui-locale-en': path.resolve(__dirname, '../dist/locale/en-US.js') + 'at-ui-locale-en': path.resolve(__dirname, '../dist/locale/en-US.js'), + 'at-ui-locale-tr': path.resolve(__dirname, '../dist/locale/tr-TR.js') } }, plugins: [ diff --git a/docs/markdown/en/i18n.md b/docs/markdown/en/i18n.md index 06fba03..91b4bfc 100644 --- a/docs/markdown/en/i18n.md +++ b/docs/markdown/en/i18n.md @@ -41,5 +41,6 @@ new Vue({ i18n }).$mount('#app') | Korean (South Korea) | ko-KR | | Portuguese (Brazil) | pt-BR | | Persian (Iran) | fa-IR | +| Turkish | tr-TR | If your target language is not included, you are more than welcome to contribute: just add another language config to [here](https://github.com/AT-UI/at-ui/blob/master/src/locale/lang/) and create a pull request. diff --git a/docs/markdown/zh/i18n.md b/docs/markdown/zh/i18n.md index 8db69dd..40b7899 100644 --- a/docs/markdown/zh/i18n.md +++ b/docs/markdown/zh/i18n.md @@ -41,5 +41,6 @@ new Vue({ i18n }).$mount('#app') | 韩语(韩国) | ko-KR | | 葡萄牙语(巴西) | pt-BR | | 波斯语(伊朗) | fa-IR | +| 土耳其 | tr-TR | 如果您需要使用其他的语言,欢迎贡献 PR:只需要在 [这里](https://github.com/AT-UI/at-ui/blob/master/src/locale/lang/) 添加一个语言配置文件即可 diff --git a/src/locale/lang/tr-TR.js b/src/locale/lang/tr-TR.js new file mode 100644 index 0000000..6534687 --- /dev/null +++ b/src/locale/lang/tr-TR.js @@ -0,0 +1,28 @@ +export default { + at: { + select: { + placeholder: 'Seçiniz', + notFoundText: 'Eşleşen veri yok' + }, + modal: { + okText: 'Tamam', + cancelText: 'İptal' + }, + pagination: { + prevText: 'Önceki Sayfa', + nextText: 'Sonraki Sayfa', + total: 'Toplam', + item: 'kayıt', + items: 'kayıtlar', + pageSize: '/ sayfa', + goto: 'Git', + pageText: '', + prev5Text: 'Önceki 5 Sayfa', + next5Text: 'Sonraki 5 Sayfa' + }, + table: { + emptyText: 'Veri Yok' + } + } + } + \ No newline at end of file