getTranslation method

PackTranslation? getTranslation(
  1. String id
)

Implementation

PackTranslation? getTranslation(String id) {
  final data = getAsset('$kPackTranslationsPath/$id.json');
  if (data == null) return null;
  final content = utf8.decode(data);
  return PackTranslationMapper.fromJson(content);
}