Make a Setting for StandardDispatcher to Allow Aliases of All Locales #104

Open
opened 2020-06-08 00:59:47 +01:00 by Ghost · 0 comments
Ghost commented 2020-06-08 00:59:47 +01:00 (Migrated from codeberg.org)

Feature Request

Sub-Project

  • core

Description

We should make a setting for the StandardDispatcher which allows all aliases of all commands in all locales at all times. This should be disabled by default, and must validate at startup to ensure there are no contradictions of aliases if this setting is enabled.

If the setting is enabled and there are conflicts as a result, throw an exception.

Motivation

This would be nice for smaller applications that have i18n support, but don't have enough modules/commands to worry about conflicts between locales, so users can use whatever language they want.

# Feature Request <!-- If you feel a heading is irrelevant, just leave it empty or remove it. --> ## Sub-Project <!-- Can you specify which sub-project(s) this is relevant to? If you aren't sure, or this is a proposal for a new sub-project, you can delete this. --> * core ## Description <!-- Explain what this is about, try to use full sentences, and make your point clear. --> We should make a setting for the `StandardDispatcher` which allows all aliases of all commands in all locales at all times. This should be disabled by default, and must validate at startup to ensure there are no contradictions of aliases if this setting is enabled. If the setting is enabled and there are conflicts as a result, throw an exception. ## Motivation <!-- Why is this a feature that should be implemented in Commandler rather than in your own project using it? What makes this fundamental, or reusable, or of demand to other developers? --> This would be nice for smaller applications that have i18n support, but don't have enough modules/commands to worry about conflicts between locales, so users can use whatever language they want.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
SethFalco/commandler#104
No description provided.