loadSingleYamlFile method
加载单个 yaml 文件并转换为 Map
Implementation
Future<Map<String, dynamic>?> loadSingleYamlFile(String path) async {
try {
final content = await rootBundle.loadString(path);
return convertYamlToMap(loadYaml(content));
} catch (e, s) {
UtilPrint.error('i18n yaml file not found: $path', e, s);
return null;
}
}