[yi] fix Fa'afafine

This commit is contained in:
Andrea Vos 2021-03-05 20:05:56 +01:00
parent 32f62fd448
commit 897a1b95c7

View File

@ -9,7 +9,7 @@ export default ({ app, store }) => {
Vue.prototype.$t = t; Vue.prototype.$t = t;
Vue.prototype.$translateForPronoun = (str, pronoun) => Vue.prototype.$translateForPronoun = (str, pronoun) =>
pronoun.format( pronoun.format(
t(`flags.${str.replace(/ /g, '_').replace(/\*/g, `'`)}`, {}, false) || str t(`flags.${str.replace(/ /g, '_').replace(/'/g, `*`)}`, {}, false) || str
); );
Vue.prototype.config = config; Vue.prototype.config = config;
Vue.prototype.locales = buildDict(function* () { Vue.prototype.locales = buildDict(function* () {