chore(sh-admin): alert the user while deleting users who are team owners (#3937)

Co-authored-by: amk-dev <akash.k.mohan98@gmail.com>
Co-authored-by: nivedin <nivedinp@gmail.com>
This commit is contained in:
James George
2024-03-28 20:17:24 +05:30
committed by GitHub
parent 0a71783eaa
commit 81f1e05a6c
6 changed files with 180 additions and 63 deletions

View File

@@ -1,7 +1,23 @@
import { createI18n } from 'vue-i18n';
import { I18n, createI18n } from 'vue-i18n';
import { HoppModule } from '.';
import messages from '@intlify/unplugin-vue-i18n/messages';
// A reference to the i18n instance
let i18nInstance: I18n<
Record<string, unknown>,
Record<string, unknown>,
Record<string, unknown>,
string,
false
> | null = null;
/**
* Returns the i18n instance
*/
export function getI18n() {
return i18nInstance!.global.t;
}
export default <HoppModule>{
onVueAppInit(app) {
const i18n = createI18n({
@@ -11,6 +27,9 @@ export default <HoppModule>{
legacy: false,
allowComposition: true,
});
app.use(i18n);
i18nInstance = i18n;
},
};