nestingPrefix property

String? nestingPrefix
final

nestingPrefix and nestingSuffix are the deliminators for nesting mechanism. By default they are '$t(' and ')' respectively and can't be null but can be empty.

nestingSeparator is used to separate the key's name from the variables (if any) which must be JSON. Defaults to ',' and cannot be null nor empty (otherwise it'll match every char in the nesting).

{
  key1: "Hello $t(key2)!"
  key2: "World"
}
i18Next.t('key1') // "Hello World!"

Implementation

final String? nestingPrefix, nestingSuffix, nestingSeparator;