Code Monkey home page Code Monkey logo

Comments (6)

damienbod avatar damienbod commented on June 2, 2024

Hi @garfieldos I use the Key and the localizationculture as a constraint, because I assumed that it makes no sense to repeat this translation, the bank transfer is the same, just used from 2 different controllers, views.

I was thinking this would make more sense as a shared resource.

Maybe it would be better if I used the resourcekey also in the constraint, then the user of the package can decide.

If you want, I can add this, I also need to update to 1.1.

Opinion?

Greetings Damien

from angularlocalizationaspnetcore.

szymongaertig avatar szymongaertig commented on June 2, 2024

One key for all resource would be good, if there will be some possibility to reach this translation withot resourcekey context (without view/controller context).
Now we are using Localizer object with view/controller context and in all that contextes it should be a possibility of using this same translation keys (because their meaning could differ across different contextes).

I think, that it should be composite key on columns: Key ,ResourceKey and localizationCulture (of course sense of column name: "key" will be lost after this change)

from angularlocalizationaspnetcore.

damienbod avatar damienbod commented on June 2, 2024

@garfieldos makes sense, I'll make the constraint using all 3 properties. The key still makes sense for me, as this is the key without the resource.

Will update this ASAP. (also only with .NET 1.1) I want to move on from 1.0. Is this ok, or do you require the fix for .NET Core 1.0?

Greetings Damien

from angularlocalizationaspnetcore.

szymongaertig avatar szymongaertig commented on June 2, 2024

1.1 will be ok for me.
Thx

from angularlocalizationaspnetcore.

damienbod avatar damienbod commented on June 2, 2024

@garfieldos
Updated NuGet:
https://www.nuget.org/packages/Localization.SqlLocalizer/1.0.4

Code:
https://github.com/damienbod/AspNet5Localization/tree/master/AspNet5Localization/src/Localization.SqlLocalizer

from angularlocalizationaspnetcore.

szymongaertig avatar szymongaertig commented on June 2, 2024

Thx a lot!

from angularlocalizationaspnetcore.

Related Issues (7)

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.