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
d.js toolkit
d.js toolkit2mo ago
- 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 OP
Crλb
CrλbOP2mo ago
my code for the command
No description
d.js docs
d.js docs2mo ago
:dtypes: v10: Locale read more
treble/luna
treble/luna2mo ago
use the enum, or its values
Crλb
CrλbOP2mo ago
errors:
No description
No description
No description
treble/luna
treble/luna2mo ago
not its keys
Crλb
CrλbOP2mo ago
oh ok enumkeys is what i should use use right? no wait i mean enum mappings
treble/luna
treble/luna2mo ago
either its keys (properly) or the value it represents so Locale.PortugueseBR
Crλb
CrλbOP2mo ago
im already using portuguese br
No description
treble/luna
treble/luna2mo ago
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
Crλb
CrλbOP2mo ago
im just gonna install intellisense
treble/luna
treble/luna2mo ago
[Locale.PortugueseBR] is also what you are looking for
Crλb
CrλbOP2mo ago
oh ok thanks very much!

Did you find this page helpful?