getTranslation method
- 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);
}