mirror of
https://github.com/certd/certd.git
synced 2026-05-16 21:27:34 +08:00
chore: 模版导入式创建流水线
This commit is contained in:
@@ -133,5 +133,12 @@ async function loadLocaleMessages(lang: SupportedLanguagesType) {
|
||||
|
||||
return setI18nLanguage(lang);
|
||||
}
|
||||
|
||||
export function useI18n() {
|
||||
return {
|
||||
t: i18n.global.t,
|
||||
locale: i18n.global.locale,
|
||||
};
|
||||
}
|
||||
export { i18n, loadLocaleMessages, loadLocalesMap, loadLocalesMapFromDir, setupI18n, setI18nLanguage };
|
||||
export default i18n;
|
||||
|
||||
Reference in New Issue
Block a user