You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the messages that must be returned to the end user are inserted directly into the code (see an example here). It is necessary to separate these strings in a .json file. Basically, the schema for this file should look something like the following:
{// ...commands: {// ...}}
Any string that is NOT returned by a command must be outside commands key.
The commands has an object like value. The keys and values inside this object must be, respectively, the name of the correspondent command and an object with the strings.
Notes:
The strings inside this file must be only strings returned to the end user. For example, strings passed to Error instances mustn't be in this file.
This file must ONLY be modified programmatically.
When importing this file, the const it will be attributed to must be uppercased. See the following example:
Currently, the messages that must be returned to the end user are inserted directly into the code (see an example here). It is necessary to separate these strings in a
.json
file. Basically, the schema for this file should look something like the following:commands
key.commands
has an object like value. The keys and values inside this object must be, respectively, the name of the correspondent command and an object with the strings.Notes:
const
it will be attributed to must be uppercased. See the following example:The text was updated successfully, but these errors were encountered: