What is the enum for the portuguese localization
i want to localiza a command to brazilian portuguese but all of the strings ive tried dont work.
13 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPmy code for the command
![No description](https://cdn.answeroverflow.com/1324870321265709116/image.png)
use the enum, or its values
errors:
![No description](https://cdn.answeroverflow.com/1324870616637243432/image.png)
![No description](https://cdn.answeroverflow.com/1324870617157075026/image.png)
![No description](https://cdn.answeroverflow.com/1324870617622646905/image.png)
not its keys
oh ok
enumkeys is what i should use use right?
no wait i mean enum mappings
either its keys (properly) or the value it represents
so Locale.PortugueseBR
im already using portuguese br
![No description](https://cdn.answeroverflow.com/1324871272382988378/image.png)
but incorreclty
you have to either use the enum, or the value it represents
not the enum key itself
or as jira said, rely on intellisense
im just gonna install intellisense
[Locale.PortugueseBR] is also what you are looking for
oh ok thanks very much!