mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
allow users to set coordinate display type (#141)
This commit is contained in:
@@ -1826,6 +1826,13 @@
|
||||
"Currency Unit": "Währungseinheit",
|
||||
"Currency Name": "Währungsname",
|
||||
"Currency Symbol": "Währungssymbol",
|
||||
"Geographic Location Format": "Geographic Location Format",
|
||||
"Latitude Longitude D.D°": "Latitude Longitude D.D°",
|
||||
"Longitude Latitude D.D°": "Longitude Latitude D.D°",
|
||||
"Latitude Longitude D°M.M'": "Latitude Longitude D°M.M'",
|
||||
"Longitude Latitude D°M.M'": "Longitude Latitude D°M.M'",
|
||||
"Latitude Longitude D°M'S\"": "Latitude Longitude D°M'S\"",
|
||||
"Longitude Latitude D°M'S\"": "Longitude Latitude D°M'S\"",
|
||||
"Expense Amount Color": "Farbe des Ausgabenbetrags",
|
||||
"Income Amount Color": "Farbe des Einnahmenbetrags",
|
||||
"Show Account Balance": "Kontostand anzeigen",
|
||||
|
||||
@@ -1826,6 +1826,13 @@
|
||||
"Currency Unit": "Currency Unit",
|
||||
"Currency Name": "Currency Name",
|
||||
"Currency Symbol": "Currency Symbol",
|
||||
"Geographic Location Format": "Geographic Location Format",
|
||||
"Latitude Longitude D.D°": "Latitude Longitude D.D°",
|
||||
"Longitude Latitude D.D°": "Longitude Latitude D.D°",
|
||||
"Latitude Longitude D°M.M'": "Latitude Longitude D°M.M'",
|
||||
"Longitude Latitude D°M.M'": "Longitude Latitude D°M.M'",
|
||||
"Latitude Longitude D°M'S\"": "Latitude Longitude D°M'S\"",
|
||||
"Longitude Latitude D°M'S\"": "Longitude Latitude D°M'S\"",
|
||||
"Expense Amount Color": "Expense Amount Color",
|
||||
"Income Amount Color": "Income Amount Color",
|
||||
"Show Account Balance": "Show Account Balance",
|
||||
|
||||
@@ -1826,6 +1826,13 @@
|
||||
"Currency Unit": "Unidad monetaria",
|
||||
"Currency Name": "Nombre de moneda",
|
||||
"Currency Symbol": "Símbolo de moneda",
|
||||
"Geographic Location Format": "Geographic Location Format",
|
||||
"Latitude Longitude D.D°": "Latitude Longitude D.D°",
|
||||
"Longitude Latitude D.D°": "Longitude Latitude D.D°",
|
||||
"Latitude Longitude D°M.M'": "Latitude Longitude D°M.M'",
|
||||
"Longitude Latitude D°M.M'": "Longitude Latitude D°M.M'",
|
||||
"Latitude Longitude D°M'S\"": "Latitude Longitude D°M'S\"",
|
||||
"Longitude Latitude D°M'S\"": "Longitude Latitude D°M'S\"",
|
||||
"Expense Amount Color": "Color del importe del gasto",
|
||||
"Income Amount Color": "Color del importe del ingreso",
|
||||
"Show Account Balance": "Mostrar saldo de cuenta",
|
||||
|
||||
@@ -46,6 +46,10 @@ import {
|
||||
CurrencySortingType
|
||||
} from '@/core/currency.ts';
|
||||
|
||||
import {
|
||||
CoordinateDisplayType
|
||||
} from '@/core/coordinate.ts';
|
||||
|
||||
import {
|
||||
PresetAmountColor
|
||||
} from '@/core/color.ts';
|
||||
@@ -385,6 +389,26 @@ export function useI18n() {
|
||||
return ret;
|
||||
}
|
||||
|
||||
function getLocalizedDisplayNameAndTypeWithSystemDefault(typeAndNames: TypeAndName[], defaultValue: number, defaultType: TypeAndName): TypeAndDisplayName[] {
|
||||
const ret: TypeAndDisplayName[] = [];
|
||||
|
||||
ret.push({
|
||||
type: defaultValue,
|
||||
displayName: t('System Default') + (defaultType.name ? ` (${t(defaultType.name)})` : '')
|
||||
});
|
||||
|
||||
for (let i = 0; i < typeAndNames.length; i++) {
|
||||
const nameAndType = typeAndNames[i];
|
||||
|
||||
ret.push({
|
||||
type: nameAndType.type,
|
||||
displayName: t(nameAndType.name)
|
||||
});
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
function getLocalizedNumeralSeparatorFormats<T extends NumeralSymbolType>(allSeparatorArray: T[], localeDefaultType: T | undefined, systemDefaultType: T, languageDefaultValue: number): LocalizedNumeralSymbolType[] {
|
||||
let defaultSeparatorType: T | undefined = localeDefaultType;
|
||||
|
||||
@@ -1699,6 +1723,7 @@ export function useI18n() {
|
||||
getAllDigitGroupingTypes,
|
||||
getAllCurrencyDisplayTypes,
|
||||
getAllCurrencySortingTypes: () => getLocalizedDisplayNameAndType(CurrencySortingType.values()),
|
||||
getAllCoordinateDisplayTypes: () => getLocalizedDisplayNameAndTypeWithSystemDefault(CoordinateDisplayType.values(), CoordinateDisplayType.SystemDefaultType, CoordinateDisplayType.Default),
|
||||
getAllExpenseAmountColors: () => getAllExpenseIncomeAmountColors(CategoryType.Expense),
|
||||
getAllIncomeAmountColors: () => getAllExpenseIncomeAmountColors(CategoryType.Income),
|
||||
getAllAccountCategories,
|
||||
|
||||
@@ -1826,6 +1826,13 @@
|
||||
"Currency Unit": "Unità valuta",
|
||||
"Currency Name": "Nome valuta",
|
||||
"Currency Symbol": "Simbolo valuta",
|
||||
"Geographic Location Format": "Geographic Location Format",
|
||||
"Latitude Longitude D.D°": "Latitude Longitude D.D°",
|
||||
"Longitude Latitude D.D°": "Longitude Latitude D.D°",
|
||||
"Latitude Longitude D°M.M'": "Latitude Longitude D°M.M'",
|
||||
"Longitude Latitude D°M.M'": "Longitude Latitude D°M.M'",
|
||||
"Latitude Longitude D°M'S\"": "Latitude Longitude D°M'S\"",
|
||||
"Longitude Latitude D°M'S\"": "Longitude Latitude D°M'S\"",
|
||||
"Expense Amount Color": "Colore importo spesa",
|
||||
"Income Amount Color": "Colore importo entrata",
|
||||
"Show Account Balance": "Mostra saldo conto",
|
||||
|
||||
@@ -1826,6 +1826,13 @@
|
||||
"Currency Unit": "通貨単位",
|
||||
"Currency Name": "通貨名",
|
||||
"Currency Symbol": "通貨記号",
|
||||
"Geographic Location Format": "Geographic Location Format",
|
||||
"Latitude Longitude D.D°": "Latitude Longitude D.D°",
|
||||
"Longitude Latitude D.D°": "Longitude Latitude D.D°",
|
||||
"Latitude Longitude D°M.M'": "Latitude Longitude D°M.M'",
|
||||
"Longitude Latitude D°M.M'": "Longitude Latitude D°M.M'",
|
||||
"Latitude Longitude D°M'S\"": "Latitude Longitude D°M'S\"",
|
||||
"Longitude Latitude D°M'S\"": "Longitude Latitude D°M'S\"",
|
||||
"Expense Amount Color": "支出金額の色",
|
||||
"Income Amount Color": "収入金額の色",
|
||||
"Show Account Balance": "口座残高を表示",
|
||||
|
||||
@@ -1826,6 +1826,13 @@
|
||||
"Currency Unit": "Единица валюты",
|
||||
"Currency Name": "Название валюты",
|
||||
"Currency Symbol": "Символ валюты",
|
||||
"Geographic Location Format": "Geographic Location Format",
|
||||
"Latitude Longitude D.D°": "Latitude Longitude D.D°",
|
||||
"Longitude Latitude D.D°": "Longitude Latitude D.D°",
|
||||
"Latitude Longitude D°M.M'": "Latitude Longitude D°M.M'",
|
||||
"Longitude Latitude D°M.M'": "Longitude Latitude D°M.M'",
|
||||
"Latitude Longitude D°M'S\"": "Latitude Longitude D°M'S\"",
|
||||
"Longitude Latitude D°M'S\"": "Longitude Latitude D°M'S\"",
|
||||
"Expense Amount Color": "Цвет суммы расхода",
|
||||
"Income Amount Color": "Цвет суммы дохода",
|
||||
"Show Account Balance": "Показать баланс счета",
|
||||
|
||||
@@ -1826,6 +1826,13 @@
|
||||
"Currency Unit": "Одиниця валюти",
|
||||
"Currency Name": "Назва валюти",
|
||||
"Currency Symbol": "Символ валюти",
|
||||
"Geographic Location Format": "Geographic Location Format",
|
||||
"Latitude Longitude D.D°": "Latitude Longitude D.D°",
|
||||
"Longitude Latitude D.D°": "Longitude Latitude D.D°",
|
||||
"Latitude Longitude D°M.M'": "Latitude Longitude D°M.M'",
|
||||
"Longitude Latitude D°M.M'": "Longitude Latitude D°M.M'",
|
||||
"Latitude Longitude D°M'S\"": "Latitude Longitude D°M'S\"",
|
||||
"Longitude Latitude D°M'S\"": "Longitude Latitude D°M'S\"",
|
||||
"Expense Amount Color": "Колір суми витрат",
|
||||
"Income Amount Color": "Колір суми доходу",
|
||||
"Show Account Balance": "Показати баланс рахунку",
|
||||
|
||||
@@ -1826,6 +1826,13 @@
|
||||
"Currency Unit": "Đơn vị tiền tệ",
|
||||
"Currency Name": "Tên tiền tệ",
|
||||
"Currency Symbol": "Ký hiệu tiền tệ",
|
||||
"Geographic Location Format": "Geographic Location Format",
|
||||
"Latitude Longitude D.D°": "Latitude Longitude D.D°",
|
||||
"Longitude Latitude D.D°": "Longitude Latitude D.D°",
|
||||
"Latitude Longitude D°M.M'": "Latitude Longitude D°M.M'",
|
||||
"Longitude Latitude D°M.M'": "Longitude Latitude D°M.M'",
|
||||
"Latitude Longitude D°M'S\"": "Latitude Longitude D°M'S\"",
|
||||
"Longitude Latitude D°M'S\"": "Longitude Latitude D°M'S\"",
|
||||
"Expense Amount Color": "Màu số tiền chi tiêu",
|
||||
"Income Amount Color": "Màu số tiền thu nhập",
|
||||
"Show Account Balance": "Hiển thị số dư tài khoản",
|
||||
|
||||
@@ -1826,6 +1826,13 @@
|
||||
"Currency Unit": "货币单位",
|
||||
"Currency Name": "货币名称",
|
||||
"Currency Symbol": "货币符号",
|
||||
"Geographic Location Format": "地理位置格式",
|
||||
"Latitude Longitude D.D°": "纬度 经度 D.D°",
|
||||
"Longitude Latitude D.D°": "经度 纬度 D.D°",
|
||||
"Latitude Longitude D°M.M'": "纬度 经度 D°M.M'",
|
||||
"Longitude Latitude D°M.M'": "经度 纬度 D°M.M'",
|
||||
"Latitude Longitude D°M'S\"": "纬度 经度 D°M'S\"",
|
||||
"Longitude Latitude D°M'S\"": "经度 纬度 D°M'S\"",
|
||||
"Expense Amount Color": "支出金额颜色",
|
||||
"Income Amount Color": "收入金额颜色",
|
||||
"Show Account Balance": "显示账户余额",
|
||||
|
||||
@@ -1826,6 +1826,13 @@
|
||||
"Currency Unit": "貨幣單位",
|
||||
"Currency Name": "貨幣名稱",
|
||||
"Currency Symbol": "貨幣符號",
|
||||
"Geographic Location Format": "地理位置格式",
|
||||
"Latitude Longitude D.D°": "緯度 經度 D.D°",
|
||||
"Longitude Latitude D.D°": "經度 緯度 D.D°",
|
||||
"Latitude Longitude D°M.M'": "緯度 經度 D°M.M'",
|
||||
"Longitude Latitude D°M.M'": "經度 緯度 D°M.M'",
|
||||
"Latitude Longitude D°M'S\"": "緯度 經度 D°M'S\"",
|
||||
"Longitude Latitude D°M'S\"": "經度 緯度 D°M'S\"",
|
||||
"Expense Amount Color": "支出金額顏色",
|
||||
"Income Amount Color": "收入金額顏色",
|
||||
"Show Account Balance": "顯示帳戶餘額",
|
||||
|
||||
Reference in New Issue
Block a user