Giter VIP home page Giter VIP logo

oqtane.translations's Introduction

Overview

Oqtane.Translations is OSS for provding a supported transaltions for Oqtane Framework.

How to create a new translation for Oqtane Framework

There are two ways to start a new translation for Oqtane Framework:

1. Using Repository

Simply you can start your new translation from the repository by copying the English (en) folder and paste it with the name {Language} ({Culture}). For example creating a French translation will lead a French (fr-FR) folder to be created.

When your translations are ready you can contribute it with Oqtane.Translations by submitting a PR with the added files.

2. Using Oqtane Resources Extractor Tool

Another way to start your new translation is to use the Oqtane Resources Extractor tool by cloning the Oqtane.ResxExtractor repository, then to run the tool in the root of the Oqtane Framework source.

This way the tool will generate the same resources that's available in English (en) folder that you saw earlier, but the main difference you will get a FRESH copy of the resources, because the default resources need to be updated frequently to get the newly added resources in the Oqtane Framework source.

In case you want to generate a culture specific resources instead of clone the English resources and suffix them, you could simple run oqtane-extractor -c={Culture} with option.

How to use the translations in Oqtane Framework

As we know Oqatane Framework is using two runtimes Server and WebAssembly, to make sure that the newly added translation should work as expected what you need is to copy the translations folder content into Oqtane.Client project more specifically into Resources folder or the name that is configured in the AddLocalization() extension.

Last step you need is to ensure that you include the culture name in the resx file. For example in Frensh translation it should be {ResourceName}.fr-FR.resx, this way Oqtane Framework will recognize you added resources

Instructions

oqtane.translations's People

Contributors

ajahangard avatar artmediadevongithub avatar caloup avatar hishamco avatar ijungleboy avatar isaeed avatar leigh-pointer avatar lthoa avatar marcdrexel avatar pavelvsl avatar pcancela avatar santiagocrd avatar sbwalker avatar

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.