Merge branch 'from/develop/tusooa/multi-iface-lang' into 'develop'
Multiple interface languages support See merge request pleroma/pleroma-fe!1568
This commit is contained in:
commit
a9716701be
7 changed files with 108 additions and 25 deletions
|
|
@ -286,8 +286,13 @@ const instance = {
|
|||
langList
|
||||
.map(async lang => {
|
||||
if (!state.unicodeEmojiAnnotations[lang]) {
|
||||
const annotations = await loadAnnotations(lang)
|
||||
commit('setUnicodeEmojiAnnotations', { lang, annotations })
|
||||
try {
|
||||
const annotations = await loadAnnotations(lang)
|
||||
commit('setUnicodeEmojiAnnotations', { lang, annotations })
|
||||
} catch (e) {
|
||||
console.warn(`Error loading unicode emoji annotations for ${lang}: `, e)
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}))
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue