js can directly use Chinese as the variable name, so it is very convenient to use Chinese directly when setting language files. But is there a problem with this?
it"s usually like this:
//
export default {
LIST: "List",
SETTING: "Setting",
DISABLE: "Disable",
}
//
export default {
LIST: "",
SETTING: "",
DISABLE: "",
}
then call: $t ("LIST");
if you directly use the Chinese bit key:
//
export default {
: "List",
: "Create",
: "Setting",
: "Disable",
}
$t ("list"); if the language file is not loaded, the list will be displayed directly; when the language file is loaded, the List will be displayed;
which method is good? Will there be any big holes in defining key, in Chinese?