Aspnetcore.docs: 3.0 update: Globalization and localization

Created on 9 Sep 2019  Â·  15Comments  Â·  Source: dotnet/AspNetCore.Docs

Ryan to do this.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

PU Source - Docs.ms

All 15 comments

@Rick-Anderson can I participate on this while I added almost the localization features if not all in 3.0.0 :)

@hishamco Can you provide a PR with the 3.0 updates? You might want to duplicate the entire document like this:

::: moniker range=">= aspnetcore-3.0"
copy of existing doc which you update for 3.0
::: moniker-end

::: moniker range="< aspnetcore-3.0"

original document
::: moniker-end

::: moniker range=">= aspnetcore-3.0"
copy of existing doc which you update for 3.0
::: moniker-end

Sure, I already know the monikers stuff :)

This guide is great for application localization.

Is there any built-in way to localize a razor component library as stand alone ? (i.e. all the resx files should be inside the library itself, etc...).

I read a few guides already and they all target only localizing an application.

There's a built in support for that with the help of ResourcesLocationAttribute

Thanks. I'll look into that.
Do you know of any guides/example that can help with this specific scenario ?

The desired result is having built-in resx files for the library for common languages, and still allowing to override specific values/add new languages by the consumer of the library also through localization.

The current docs mentioning that also you can check aspnet/entropy repo

I think it's the time to start on this one

@Rick-Anderson shall I start with modifying the current code to target 3.0, after that we can write about the new stuff that have been added

@Rick-Anderson shall I start with modifying the current code to target 3.0,

Sure. Just remember

::: moniker range=">= aspnetcore-3.0"
copy of existing doc which you update for 3.0
::: moniker-end

::: moniker range="< aspnetcore-3.0"

original document
::: moniker-end

Don't worry about the monikers, I already worked with them before :)

the PR is coming 🚀 🚀 🚀

@Rick-Anderson I will create another PR to talk about the Content-Language header, one more thing there's a minor change in LogLevel when the culture is unsupported shall we point to this?

there's a minor change in LogLevel when the culture is unsupported shall we point to this?

Sure

Ok, I will did that in my 2nd PR

Was this page helpful?
0 / 5 - 0 ratings

Related issues

royshouvik picture royshouvik  Â·  3Comments

YeyoCoder picture YeyoCoder  Â·  3Comments

serpent5 picture serpent5  Â·  3Comments

nenmyx picture nenmyx  Â·  3Comments

StevenTCramer picture StevenTCramer  Â·  3Comments