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 Request: CLI to help generate a config file #11

Open
radiovisual opened this issue Jun 3, 2024 · 0 comments
Open

Feature Request: CLI to help generate a config file #11

radiovisual opened this issue Jun 3, 2024 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@radiovisual
Copy link
Owner

Since the configuration file is important to setup correctly, it would be nice to have a CLI to ask the user questions via inquier prompts and that would generate the configuration file for the user in the same directory where the command was run.

Something like:

i18n-validator init
Where would you like to create the configuration file? .
What is the default locale of your app? en
What is the name of the file where your default messages are located? en.json
Which locales are supported by your app? en, fr, de
What is the name of the file where the `fr` messages are found? fr.json
What is the name of the file where the `de` messages are found? de.json
What is the path (relative to where the configuration file) to the directory where you keep your translation files? path/to/dir
Do you want to enable the dryRun setting? no
Do you want to enable the CLI? yes
@radiovisual radiovisual added help wanted Extra attention is needed good first issue Good for newcomers labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant