ExpressLocalization | All dirty localization settings in simple steps | Internationalization library
kandi X-RAY | ExpressLocalization Summary
kandi X-RAY | ExpressLocalization Summary
A nuget package to simplify the localization setup of any Asp.Net Core web application.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ExpressLocalization
ExpressLocalization Key Features
ExpressLocalization Examples and Code Snippets
Install-Package LazZiya.ExpressLocalization
using LazZiya.ExpressLocalization;
public void ConfigureServices(IServiceCollection services)
{
var cultures = new CultureInfo[]
{
new CultureInfo("en"),
new CultureInfo("tr"),
Community Discussions
Trending Discussions on ExpressLocalization
QUESTION
I have scaffolded my RegisterConfirmation page in .Net Core identity. My cshtml code is below.
...ANSWER
Answered 2020-Jul-18 at 11:30This is more a workaround than an answer. By pushing my text down the page using line breaks, it works fine. Not a solution for most other pages, but because this is only the register confirmation with few components on the page, I can make it work.
I'm guessing it is a css sizing issue with my @section header_image
. One solution would probably be to check the css, or perhaps create a chopped header image with reduced height and use it on this page. But I don't need to bother in this case.
QUESTION
I have implemented this nuget package for localization in my Asp.Net Core MVC 3.0 app and have found it great.
https://github.com/LazZiya/ExpressLocalization
For all pages except my scaffolded identity pages it is working fine.
When I navigate to my scaffolded Register.cshtml page I am having a problem where my localization cookie is not being placed into the URL. But if I type the culture (Such as de
or en
etc.) into the URL manually the localization works fine.
For example, when I click the Register link the URL should be
but instead it is always
Startup.cs
...ANSWER
Answered 2020-Jun-15 at 06:06Using asp-route-culture="@CultureInfo.CurrentCulture.Name"
should fix the issue.
In your code it seems that you are using inverted commas“...”
they should be quotation marks "..."
:)
QUESTION
I have been trying to follow these two tutorials to add Localization to my .Net Core Razor web app.
http://ziyad.info/en/articles/36-Develop_Multi_Cultural_Web_Application_Using_ExpressLocalization
I have tried creating projects from scratch. I have tried adding to my existing projects. I have tried using the LocalizeTagHelper and SharedCultureLocalizer options without success.
I just cant get any text such as 'Home' or 'myApp' below to change.
When I select a language in my dropdown, the language is specified in the URL (See below), but my text just wont change.
Dropdown component & Home text x 2:
Url:
Index.cshtml
...ANSWER
Answered 2020-May-01 at 13:16If you are using V4.0.0 you don't need LazZiya.TagHelpers.Localization
, just uninstall it because the LocalizeTagHelper
has been moved to LazZiya.ExpressLocalization
in the latest version.
So, just add the localize taghelper to _ViewImports.cshtml
as below:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ExpressLocalization
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page