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

[feature] How to create alias for hardcoded words? #1442

Open
ghost opened this issue Apr 22, 2024 · 1 comment
Open

[feature] How to create alias for hardcoded words? #1442

ghost opened this issue Apr 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Apr 22, 2024

Is your feature request related to a problem? Please describe.

Hello. Your project is interested in giving options for many things, excellent, so I thought about bringing this topic.
For English native speakers, it may sound natural to run commands like: npm run, or bun run, or moon run.

But since other languages may not even have these characters upfront in their keyboard, it was always a limited decision to only allow words like "run", "upgrade" to be written.

I mean, even though someone may understand by force of habit what does "run" mean, but maybe in their language it would be better to write "Luna correr" instead of "Moon run".

You see, the verb run was translated.

Describe the solution you'd like

In terms of training communities or you could think of teams, it would also be better because it doesn't associate english directly to the tool being learnt.
Even if someone understands English, it may simply prefer, be easier, more productive, less disruptive, less annoying, to read in its mother language. It also avoids switching languages frequently in mental thinking.

My suggestion is: to allow the writing of an alias to each of these words like "run", in order to be able to write, for example: "moon iniciar" instead of "moon run".
Or even "Luna run" if you could be kind enough.

Describe alternatives you've considered

Additional context

@ghost ghost added the enhancement New feature or request label Apr 22, 2024
@milesj
Copy link
Collaborator

milesj commented Apr 23, 2024

Thanks for the feedback! It would be nice to support localization at some point in the future, but at this time, do to Rust's static nature, all of the strings are hard-coded in the binary and cannot be substituted at runtime.

As a temporary solution, for moon run specifically, you can drop "run" entirely. So moon :build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant