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