Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

refactor: improve locale types/errors #85

Closed
wants to merge 1 commit into from

Conversation

davipatricio
Copy link
Owner

@davipatricio davipatricio commented Jul 10, 2022

This Pull Request aims to improve types for translate functions (client.languages.manager.get(locale, key, ?args)).

In the actual implementation, the key command:ban/complete requires 2 parameters. If a developer tries to use this key without providing any argument, no error is thrown and the developer will only know about the error after testing the command.

The changes in this PR are incomplete and not tested yet. The improved types are only available on CommandLocale (t('key')) & LanguageManager.

TODO: pin dependencies

@WearifulCupid0

This comment was marked as off-topic.

@davipatricio davipatricio deleted the refactor/improve-locale-types branch July 13, 2022 22:04
@davipatricio
Copy link
Owner Author

Continued in #103

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants