As we want our application to be easily adapted for users from any region or dialect, we take advantage of the internationalization, giving our apps the feature to be translated into other languages.

With that in mind, we created the Language library to accomplish that goal and there are some features that help us along the way.

Features

Global dictionary

There will be some common words that are transversal to all of our applications/products so we have defined a global dictionary we can use in such cases.

Common words

We've defined some global words in the common dictionary and some other reports scoped terms in the global reports dictionary.

book.png

Dictionary

Application scopes

Let's say our app uses some particular words that are not needed in any other one. In such cases, we can make use of defined scopes for specific dictionaries to meet our application needs.

Defining new words


Actually, to define a new word in the global dictionary, it must be approved by the UX area responsible.

Installation and usage: @oasis/language

Refer to the installation page to learn how to use the Language in your projects.

Oasis Language usage

Language composition and best practices

Take a look at the Language basic composition to learn more about how it works and some of the best practices you have to abide by while using it.

Best practices