mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 16:06:23 +00:00
fixed command palette
This commit is contained in:
@@ -84,8 +84,9 @@ export function _t(key: string, options: TranslateOptions): string {
|
||||
}
|
||||
|
||||
export type DefferedTranslationResult = {
|
||||
_transKey: string;
|
||||
_transOptions: TranslateOptions;
|
||||
_transKey?: string;
|
||||
_transOptions?: TranslateOptions;
|
||||
_transCallback?: () => string;
|
||||
};
|
||||
|
||||
export function __t(key: string, options: TranslateOptions): DefferedTranslationResult {
|
||||
@@ -100,6 +101,10 @@ export function _tval(x: string | DefferedTranslationResult): string {
|
||||
if (typeof x?._transKey === 'string') {
|
||||
return _t(x._transKey, x._transOptions);
|
||||
}
|
||||
if (typeof x?._transCallback === 'function') {
|
||||
return x._transCallback();
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
export function isDefferedTranslationResult(
|
||||
|
||||
Reference in New Issue
Block a user