refactor(client): i18n.locale -> i18n.ts

This commit is contained in:
syuilo
2022-01-28 11:39:49 +09:00
parent 6ebab5f577
commit 57ec04d9ec
74 changed files with 424 additions and 424 deletions

View File

@ -104,7 +104,7 @@ export default defineComponent({
];
const { canceled, result: column } = await os.select({
title: i18n.locale._deck.addColumn,
title: i18n.ts._deck.addColumn,
items: columns.map(column => ({
value: column, text: i18n.t('_deck._columns.' + column)
}))
@ -121,7 +121,7 @@ export default defineComponent({
const onContextmenu = (ev) => {
os.contextMenu([{
text: i18n.locale._deck.addColumn,
text: i18n.ts._deck.addColumn,
icon: null,
action: addColumn
}], ev);

View File

@ -77,12 +77,12 @@ export const loadDeck = async () => {
deckStore.set('columns', [{
id: 'a',
type: 'main',
name: i18n.locale._deck._columns.main,
name: i18n.ts._deck._columns.main,
width: 350,
}, {
id: 'b',
type: 'notifications',
name: i18n.locale._deck._columns.notifications,
name: i18n.ts._deck._columns.notifications,
width: 330,
}]);
deckStore.set('layout', [['a'], ['b']]);

View File

@ -171,13 +171,13 @@ export default defineComponent({
text: path,
}, {
icon: 'fas fa-columns',
text: i18n.locale.openInSideView,
text: i18n.ts.openInSideView,
action: () => {
this.$refs.side.navigate(path);
}
}, {
icon: 'fas fa-window-maximize',
text: i18n.locale.openInWindow,
text: i18n.ts.openInWindow,
action: () => {
os.pageWindow(path);
}