Nutrient Web SDK

Variable locales

Returns an array of available locales. Each entry in the array is a string representing the locale e.g. en. The array can be mutated directly to add new locales. Note that when adding new locales you also need to add the corresponding translated messages.

Variable

Example

Add a new locale.

NutrientViewer.I18n.locales.push("fr");

locales

(Locale | string & {})[]

Returns an array of available locales. Each entry in the array is a string representing the locale e.g. en. The array can be mutated directly to add new locales. Note that when adding new locales you also need to add the corresponding translated messages.

Example

Add a new locale.

NutrientViewer.I18n.locales.push("fr");