Skip to main content
An object used with the locale prop on DynamicContextProvider, you can find a tutorial on how to use this type here.

Properties

The key of the object must be one of the following valid β€œlang”s: | β€œar” | β€œda” | β€œde” | β€œen” | β€œes” | β€œfi” | β€œfr” | β€œhe” | β€œit” | β€œja” | β€œnl” | β€œpl” | β€œpt” | β€œru” | β€œuk” | β€œzh” The value of the object must be a valid translation object - see below.

Translations

The translation object should follow the shape found in β€œ@dynamic-labs/sdk-react-core/src/lib/locale/en/translation.js” which you can reach by going to the definition of LocaleResource in your IDE once imported (import { LocaleResource } from '@dynamic-labs/sdk-react-core') Here is an example excerpt from that file: