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

Missing information on how to get localization working on Linux images #30741

Open
R4cOOn opened this issue Aug 18, 2022 · 2 comments
Open

Missing information on how to get localization working on Linux images #30741

R4cOOn opened this issue Aug 18, 2022 · 2 comments

Comments

@R4cOOn
Copy link

R4cOOn commented Aug 18, 2022

Type of issue

Other (describe below)

Description

The page is missing information on how to get localization working on Linux.

From what I can gather, when using the official "alpine" images in Docker/Kubernetes the following packages must be installed:

  • icu-libs
  • icu-data-full
    using the apk add --no-cahce icu-data-full icu-libs command and then setting the environment variable as documented in this page.

Failure to install both packages will make the code run without exception but won't do the actual localization.

Page URL

https://learn.microsoft.com/en-us/dotnet/core/runtime-config/globalization

Content source URL

https://github.com/dotnet/docs/blob/live/docs/core/runtime-config/globalization.md

Document Version Independent Id

5591d41e-b330-8066-e193-79c6ff037fb6

Article author

@gewarren

Metadata

  • ID: 047c947a-f6e8-5aa8-3217-37687eedb408
  • Service: dotnet-fundamentals
@gewarren
Copy link
Contributor

@richlander Can you confirm this information?

@richlander
Copy link
Member

Sorry for the delay in answering!

We started down a new path with .NET 8, adding ICU and tzdata in a new extra image flavor:

Note: tzdata has a new challenge, which we've resolved:

We provided a full set of extra images for Azure Linux and Ubuntu Chiseled. For Alpine, we provided a extra image for the runtime-deps layer only. That works well for self-contained apps.

There is an open issue requesting to expand that:

You can see how our alpine-extra images are configured: https://github.com/dotnet/dotnet-docker/blob/0a4258cc250885be5162d01f178bff5c856291f4/src/runtime-deps/8.0/alpine3.20-extra/amd64/Dockerfile#L15-L16. Following that pattern -- for example using an aspnet Alpine image -- will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants