mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
fix(web): escaping html-encoded symbols like apostrophes in translations (#1002)
e.g. end user would see `'` from translations
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { createI18n } from 'vue-i18n';
|
||||
|
||||
import en_US from '@/locales/en_US.json';
|
||||
import en_US from '@/locales/en_US.json';
|
||||
import { createHtmlEntityDecoder } from '~/helpers/i18n-utils';
|
||||
|
||||
export default defineNuxtPlugin(({ vueApp }) => {
|
||||
const i18n = createI18n({
|
||||
@@ -11,6 +12,7 @@ export default defineNuxtPlugin(({ vueApp }) => {
|
||||
messages: {
|
||||
en_US,
|
||||
},
|
||||
postTranslation: createHtmlEntityDecoder(),
|
||||
});
|
||||
|
||||
vueApp.use(i18n);
|
||||
|
||||
Reference in New Issue
Block a user