Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(plugin-i18next): add applyLocalizedBuilder and createSelectMenuChoiceName to help registering localized commands #372

Merged
merged 4 commits into from Oct 16, 2022

Conversation

Arcadia148
Copy link
Contributor

@Arcadia148 Arcadia148 commented Oct 13, 2022

This PR ports applyLocalizedBuilder from @skyra/http-framework-i18n

I did also consider having a resolveLocale function which would convert locales like "ja-JP" to ones assignable to type LocaleString. (https://github.com/Arcadia148/plugins/blob/feat/localizedBuilders2/packages/i18next/src/lib/functions.ts#L189)

This PR closes #353

feat(plugin-i18next): port applyLocalizedBuilder and createSelectMenuChoiceName
Copy link
Member

@favna favna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm dumb ignore the old text

@favna favna changed the title feat(plugin-i18next): localized builders feat(plugin-i18next): add applyLocalizedBuilder to help registering localized commands Oct 15, 2022
favna
favna previously approved these changes Oct 15, 2022
packages/i18next/src/lib/functions.ts Outdated Show resolved Hide resolved
packages/i18next/src/lib/functions.ts Outdated Show resolved Hide resolved
packages/i18next/src/lib/functions.ts Outdated Show resolved Hide resolved
@favna favna changed the title feat(plugin-i18next): add applyLocalizedBuilder to help registering localized commands feat(plugin-i18next): add applyLocalizedBuilder and createSelectMenuChoiceName to help registering localized commands Oct 15, 2022
@favna favna merged commit 6deee87 into sapphiredev:main Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants