mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
automatically detect file encoding when importing delimiter-separated values (DSV) file
This commit is contained in:
@@ -2140,6 +2140,10 @@ export function useI18n() {
|
||||
return ret;
|
||||
}
|
||||
|
||||
function getLocalizedFileEncodingName(encoding: string): string {
|
||||
return t(`encoding.${encoding}`);
|
||||
}
|
||||
|
||||
function getLocalizedOAuth2ProviderName(oauth2Provider: string, oidcDisplayNames: Record<string, string>): string {
|
||||
if (oauth2Provider === 'oidc') {
|
||||
const providerDisplayName = getServerMultiLanguageConfigContent(oidcDisplayNames);
|
||||
@@ -2452,6 +2456,7 @@ export function useI18n() {
|
||||
getAmountPrependAndAppendText,
|
||||
getCategorizedAccountsWithDisplayBalance,
|
||||
// other format functions
|
||||
getLocalizedFileEncodingName,
|
||||
getLocalizedOAuth2ProviderName,
|
||||
getLocalizedOAuth2LoginText,
|
||||
// localization setting functions
|
||||
|
||||
Reference in New Issue
Block a user