GithubHelp home page GithubHelp logo

Comments (10)

hishamco avatar hishamco commented on July 20, 2024

I was thinking about Blazor while it's beta, perhaps I need to revise this soon while the localisation are supported now

Thanks

from my.extensions.localization.json.

hishamco avatar hishamco commented on July 20, 2024

If you want to pick this one I will be glad, we need a sample too to ensure nothing breaks

from my.extensions.localization.json.

hishamco avatar hishamco commented on July 20, 2024

I did some progress on this one, seems we need to remove the IHostingEnvironment dependency, coz it's not registered by default in Blazor

from my.extensions.localization.json.

fededim avatar fededim commented on July 20, 2024

Ok, the problem I see is that there is no hosting environment in blazor client side, that's why it has been removed...just to understand why do you need it ? Do you need to access contentrootpath or webrootpath ?

from my.extensions.localization.json.

hishamco avatar hishamco commented on July 20, 2024

I see is that there is no hosting environment in blazor client side,

Nope, there's IWebAssemblyHostEnvironment that can be accessed via WebAssemblyHostBuilder

Do you need to access contentrootpath or webrootpath ?

public StringLocalizer(IHostingEnvironment env, IStringLocalizerFactory factory)

Yep, but seems it's save to remove it now - for the upcoming major release - while it's not used

from my.extensions.localization.json.

hishamco avatar hishamco commented on July 20, 2024

Still there's another exception I got, I'm working to fix it ...

from my.extensions.localization.json.

hishamco avatar hishamco commented on July 20, 2024

Here is #56 a WIP, you can have a try to fix the current bug if you are interested

from my.extensions.localization.json.

fededim avatar fededim commented on July 20, 2024

Which bug are you talking about ?

from my.extensions.localization.json.

hishamco avatar hishamco commented on July 20, 2024

I'm not sure, but while I'm injecting IStringLocalizer I got some exception in the console, probably something goes wrong

from my.extensions.localization.json.

hishamco avatar hishamco commented on July 20, 2024

FYI: netstandard now has been supported in PR #56, there's a known issue in Blazor WebAssembly only

from my.extensions.localization.json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.