My users need to select a country as part of the signup, so I have added a list of countries to my translation file. e.g.
countries: {
AF: 'Afghanistan',
AL: 'Albania',
AM: 'Armenia',
AN: 'Netherlands Antilles',
AW: 'Aruba',
MF: 'Saint Martin (French part)',
AO: 'Angola',
AQ: 'Antarctica',
AR: 'Argentina',
AU: 'Australia',
CC: 'Cocos (Keeling) Islands',
CX: 'Christmas Island',
KI: 'Kiribati',
NF: 'Norfolk Island',
...
}
However, when I try to retrieve the list of countries (so that I can enumerate them) I get the error [vue-i18n] Value of key 'countries' is not a string!
. I'm assuming that I'm not the first to try to do this.
Is there a way that you've found to do this, or am I coming at this from the wrong direction by trying to use vue-i18n to do this? Thanks...