mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 10:14:26 +08:00
code refactor
This commit is contained in:
@@ -497,9 +497,9 @@ export function useI18n() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// public functions
|
// public functions
|
||||||
function translateIf(text: string | undefined, isTranslate: boolean): string | undefined {
|
function translateIf(text: string | undefined, isTranslate?: boolean): string {
|
||||||
if (!isDefined(text)) {
|
if (!isDefined(text)) {
|
||||||
return undefined;
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isTranslate) {
|
if (isTranslate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user