Code Monkey home page Code Monkey logo

lazziya / mytrips Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 13.0 3.58 MB

Sample project for basic multi-cultural web application, built with ASP.NET Core 2.1.

Home Page: http://ziyad.info/en/articles/10-Building_Multicultural_Web_Application_AspNet_Core_2_1

License: MIT License

C# 37.61% CSS 3.80% JavaScript 10.48% HTML 48.11%
asp-net-core multicultural localization client-side-validation decimal-numbers-validation csharp web-app web-application

mytrips's Introduction

MyTrips - Basic Multi-Cultural Web Application

Sample project for basic multi-cultural web application, built with ASP.NET Core 2.1.

[NEW 27.05.2019]

I developed a new nuget package named ExpressLocalization to simplify localization of Asp.Net Core web apps to one step, see samples below:

if you still need to go through localization steps manually continue reading this page :)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Supported Cultures

  • Arabic
  • Arabic - Syria
  • English
  • Hindi
  • Persian
  • Spanish
  • Turkish
Add new culture :
  • Edit /Utilities/LocalizationExtension.cs --> add new CultureInfo("xx"); to cultures list
  • Create related resource files:
  • /Resources/ViewResource.xx.resx

Built With

Demo Project :

Step by step tutorial:

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

mytrips's People

Contributors

lazziya avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

mytrips's Issues

Change Resources

i want change resource text for a language
how can i access to LazZiya.ExpressLocalization to add new item ?
and
what do you do in localize-content ? its lock

How implement in web api?

hi Ziya
thanks for your repository.
I use

Localize request via according to provided route value

article

    [Route("{culture?}/api/[controller]")]
    [ApiController]
    public class UsersController : ControllerBase
    {
        [HttpGet]
        public async Task<IActionResult> GetUsers()
        {
               ...
       }
    }

In this code i can not request http://localhoat:5000/api/users
I just can request http://localhoat:5000/tr/api/users.

how can i solve this problem until http://localhoat:5000/api/users response to me. this url in situation send not found.

thanks.

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.