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

Add more language support #9

Open
carmineyiu opened this issue Jan 24, 2021 · 4 comments
Open

Add more language support #9

carmineyiu opened this issue Jan 24, 2021 · 4 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@carmineyiu
Copy link

I want to add more language/locale support to Firefox or the Ubuntu. Should I build an image myself and add the 2nd run statement. or Should I add it later to Container, which mean I need to run locale command each time I restart container?

@scottyhardy
Copy link
Owner

I'm pretty sure if you start the container with the option --env=LANG=en_US.UTF-8 and substitute the language you want then that should work. If there's more work required for language support such as installing a package then you'd be better off modifying the Dockerfile, but I'm not sure if that's something ever required...?

@scottyhardy scottyhardy added the question Further information is requested label Dec 4, 2021
@scottyhardy
Copy link
Owner

Ok, so it looks like you actually need to install the locales package to allow using the LANG environment var, so I’ll add that to the Dockerfile

@scottyhardy scottyhardy added enhancement New feature or request and removed question Further information is requested labels Dec 11, 2021
@scottyhardy
Copy link
Owner

I've just added the locales package, so you'll need to add the --env=LANG=en_US.UTF-8 option to your run command, plus run locales-gen en_US.UTF-8 with your language code substituted for en_US.UTF-8.

@scottyhardy scottyhardy added the question Further information is requested label Dec 11, 2021
@huapox
Copy link

huapox commented Oct 9, 2022

try this: https://github.com/infrastlabs/docker-headless/blob/dev/_doc/mannual/b1-locale.md

docker run -it --rm -e L=zh_CN --net=host infrastlabs/docker-headless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants