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]: Automatic Language Selection #121

Open
hoehoetvhss opened this issue Dec 23, 2021 · 2 comments
Open

[Feature]: Automatic Language Selection #121

hoehoetvhss opened this issue Dec 23, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@hoehoetvhss
Copy link
Contributor

Feature description

If BlockProt is installed for the first time or there is no Config file, it would be nice to load it automatically based on the language of the computer.

@hoehoetvhss hoehoetvhss added the enhancement New feature or request label Dec 23, 2021
@spnda spnda added this to the 1.1.0 milestone Dec 24, 2021
@hoehoetvhss
Copy link
Contributor Author

However, if there is no language file, it will be replaced by English.

@spnda
Copy link
Owner

spnda commented Dec 24, 2021

If BlockProt is installed for the first time or there is no Config file

Do you mean that there is no config at all? The plugin should automatically copy every translations file and all config files into the correct directory.

it would be nice to load it automatically based on the language of the computer.

The main issue here is that I load the language file based on what's configured in the config.yml. And it's not the easiest thing to overwrite the config file programmatically, so I just never got to it. I'll leave this issue open and if I ever feel like trying to change the config through code I'll tend to this 👍🏻

@spnda spnda removed this from the 1.1.0 milestone Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants