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

@@ -73,7 +73,7 @@ export const menuDef = reactive({
})), null, {
type: 'link',
to: '/my/lists',
text: i18n.locale.manageLists,
text: i18n.ts.manageLists,
icon: 'fas fa-cog',
}];
items.value = _items;
@@ -104,7 +104,7 @@ export const menuDef = reactive({
})), null, {
type: 'link',
to: '/my/antennas',
text: i18n.locale.manageAntennas,
text: i18n.ts.manageAntennas,
icon: 'fas fa-cog',
}];
items.value = _items;
@@ -173,28 +173,28 @@ export const menuDef = reactive({
icon: 'fas fa-columns',
action: (ev) => {
os.popupMenu([{
text: i18n.locale.default,
text: i18n.ts.default,
active: ui === 'default' || ui === null,
action: () => {
localStorage.setItem('ui', 'default');
unisonReload();
}
}, {
text: i18n.locale.deck,
text: i18n.ts.deck,
active: ui === 'deck',
action: () => {
localStorage.setItem('ui', 'deck');
unisonReload();
}
}, {
text: i18n.locale.classic,
text: i18n.ts.classic,
active: ui === 'classic',
action: () => {
localStorage.setItem('ui', 'classic');
unisonReload();
}
}, /*{
text: i18n.locale.desktop + ' (β)',
text: i18n.ts.desktop + ' (β)',
active: ui === 'desktop',
action: () => {
localStorage.setItem('ui', 'desktop');