setTranslation method

SetonixData setTranslation(
  1. PackTranslation translation, [
  2. String locale = kFallbackLocale
])

Implementation

SetonixData setTranslation(PackTranslation translation,
        [String locale = kFallbackLocale]) =>
    setAsset(
      '$kPackTranslationsPath/$locale.json',
      utf8.encode(translation.toJson()),
    );