feature: i18next first sentence done
This commit is contained in:
@@ -8,7 +8,9 @@ i18next
|
|||||||
.init({
|
.init({
|
||||||
// 配置你的本地化選項
|
// 配置你的本地化選項
|
||||||
resources: {
|
resources: {
|
||||||
en: enLocale,
|
en: {
|
||||||
|
translation: enLocale
|
||||||
|
},
|
||||||
de: {
|
de: {
|
||||||
translation: {
|
translation: {
|
||||||
greeting: 'Hallo!'
|
greeting: 'Hallo!'
|
||||||
|
|||||||
@@ -153,6 +153,7 @@ import CompareStore from '@/stores/compare.js';
|
|||||||
import SidebarStates from '@/components/Compare/SidebarStates.vue';
|
import SidebarStates from '@/components/Compare/SidebarStates.vue';
|
||||||
import { setLineChartData } from '@/module/setChartData.js';
|
import { setLineChartData } from '@/module/setChartData.js';
|
||||||
import { simpleTimeLabel, followTimeLabel, dateLabel } from '@/module/timeLabel.js';
|
import { simpleTimeLabel, followTimeLabel, dateLabel } from '@/module/timeLabel.js';
|
||||||
|
import i18next from '@/i18n/i18n';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
@@ -179,7 +180,7 @@ export default {
|
|||||||
// {tagId: '#resource', label: 'Resource'},
|
// {tagId: '#resource', label: 'Resource'},
|
||||||
],
|
],
|
||||||
contentData: {
|
contentData: {
|
||||||
avgCycleTime: {title: 'Average Cycle Time', x: 'Date', y: 'Cycle time'},
|
avgCycleTime: {title: i18next.t("Compare.avgCycleTimeTitle"), x: 'Date', y: 'Cycle time'},
|
||||||
avgCycleEfficiency: {title: 'Cycle Efficiency', x: 'Date', y: 'Cycle efficiency (%)'},
|
avgCycleEfficiency: {title: 'Cycle Efficiency', x: 'Date', y: 'Cycle efficiency (%)'},
|
||||||
avgProcessTime: {title: 'Average Processing Time', x: 'Date', y: 'Processing time'},
|
avgProcessTime: {title: 'Average Processing Time', x: 'Date', y: 'Processing time'},
|
||||||
avgProcessTimeByTask: {title: 'Average Processing Time by Activity', x: 'Processing time', y: 'Activity'},
|
avgProcessTimeByTask: {title: 'Average Processing Time by Activity', x: 'Processing time', y: 'Activity'},
|
||||||
|
|||||||
Reference in New Issue
Block a user