Giter Site home page Giter Site logo

damienbod / angularlocalizationaspnetcore Goto Github PK

View Code? Open in Web Editor NEW
26.0 7.0 8.0 14.13 MB

Angular ASP.NET Core localization

Home Page: https://damienbod.com/2016/04/29/angular-2-localization-with-an-asp-net-core-mvc-service/

License: MIT License

C# 30.48% JavaScript 22.38% CSS 0.38% HTML 21.40% TypeScript 25.36%
angular aspnet-core typescript localization webpack

angularlocalizationaspnetcore's Introduction

Angular Localization with ASP.NET Core

Localization.SqlLocalizer NuGet Status

Documentation: https://damienbod.com/2016/05/26/released-sql-localization-nuget-package-for-asp-net-core-dotnet/

NuGet | Issues | Code

2020-01-10: Updated .NET Core 3.1, Angular 8.2.14

2019-09-23: Updated Angular 8.2.7, nuget packages

2019-05-03: Updated Angular 7.2.14, nuget packages

2019-03-15: Updated Angular 7.2.9, .NET Core 2.2

2018-08-01: Updated Angular 6.1.0, .NET Core 2.1.2

2017-08-25: Updated Localization.SqlLocalizer 2.0.1

2017-08-20: ASP.NET Core 2.0, Localization.SqlLocalizer 2.0.0 , Angular 4.3.5, angular-l10n 3.5.0

2017-05-14: Localization.SqlLocalizer 1.0.10 , angular 4.1.0, latest dotnet core packages

2017-02-10: Updated VS2017 msbuild, angular 2.4.6

2017-02-03: Updated to angular-l10n 2.0.0, VS2017 RC3 msbuild3, angular 2.4.5 and webpack 2.2.1

2017-01-07: Updated to ASP.NET Core 1.1 and VS2017 with csproj, angular 2.4.1 and webpack 2.2.0-rc.3

angularlocalizationaspnetcore's People

Contributors

damienbod avatar dependabot[bot] avatar robisim74 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

angularlocalizationaspnetcore's Issues

Upgrading to Angular 2 Release Candidate

Hi. I want to ask you if you are interested to upgrade your project to Angular2 rc.01. To solve the problem of the absence of bundles, I adopted the angular-cli, but through gulp solution. Not great, but it works (pending official solutions by Angular Team). I prepared a pr if you want to.

Server prerender

Great example of localization.
I have only one question -Are you considering the possibility of implementing such an approach via server side rendering like JavaScriptServices ?

Projects not running

I'm simply not able to get the projects to run in vs17.

  • angular localization with an asp.net core mvc service
  • creating and requesting sql localized data in asp.net core

Having installed all nuget and npm packages and webpack dev server, configured the database connecting string, when running the project I just get a Loading text message?

Resourcekey vs Key bug

How should I understand Key and resourceKey on tthe localizationrecords db?

#My case:

i want to add Two records:

insert into dbo.localizationrecords
([Key],localizationculture,resourcekey,text,updatedTimestamp)
values  ('bank transfer','en','Iwencik.Host.Views.Registration.DetailsIwencik.Host','Bank transfer',getdate())
, ('bank transfer','en','Iwencik.Host.Controllers.RegistrationController','Bank transfer',getdate()))

Both records has the same key but another resourceKey. I would assume, that there is posibility to add Two records with this same key and another resorce key, but when i try to add this records i get duplicate key constraint exception:

Msg 2627, Level 14, State 1, Line 49
Violation of UNIQUE KEY constraint 'AK_LocalizationRecords_Key_LocalizationCulture'. Cannot insert duplicate key in object 'dbo.LocalizationRecords'. The duplicate key value is (bank transfer, en).
The statement has been terminated.

Is it bug or my bad understanding of using this model?

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.