Skip to content

Latest commit

 

History

History

i18n

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Internationalization

This sample demonstrates how to internationalize your application to be supported in multiple locales. To learn more about internationalizing your application, see our documentation in the Developer Center.

The component in this sample uses language strings which are translated at runtime based on the values that were registered in the entry point of the custom library.

By default, VertiGIS Studio Web will detect the locale of the current device and display the content of the application in that locale if possible. To override the locale used by the application, you can add the locale URL parameter to force a specific locale. For example to load this sample in the de locale (German), add ?locale=de to the URL like so:

/i18n?locale=de

We recommend using the React components provided by the VertiGIS Studio Web React UI library wherever possible as demonstrated in this sample. Using these components ensures that the styling and behavior matches the rest of the application, and also takes care of translating language string keys to the corresponding value depending on the current locale automatically!