buildWithOverrides method

T buildWithOverrides({
  1. required E locale,
  2. required FileType fileType,
  3. required String content,
  4. PluralResolver? cardinalResolver,
  5. PluralResolver? ordinalResolver,
})

Creates a translation instance with overrides stored in content.

Implementation

T buildWithOverrides({
  required E locale,
  required FileType fileType,
  required String content,
  PluralResolver? cardinalResolver,
  PluralResolver? ordinalResolver,
}) {
  return buildWithOverridesFromMap(
    locale: locale,
    isFlatMap: false,
    map: BaseDecoder.decodeWithFileType(fileType, content),
    cardinalResolver: cardinalResolver,
    ordinalResolver: ordinalResolver,
  );
}