mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 02:16:02 +00:00
electron menu translation WIP
This commit is contained in:
@@ -58,6 +58,11 @@ function getTranslation(key: string, defaultMessage: string, language: string) {
|
||||
return translation;
|
||||
}
|
||||
|
||||
export function getCurrentTranslations(): Record<string, string> {
|
||||
const selectedLanguage = getSelectedLanguage();
|
||||
return translations[selectedLanguage] || {};
|
||||
}
|
||||
|
||||
export function _t(key: string, options: TranslateOptions): string {
|
||||
const { defaultMessage, values } = options;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user