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:
@@ -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;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user