diff --git a/bin/generate.dart b/bin/generate.dart index 0ad39326..7c5cba29 100644 --- a/bin/generate.dart +++ b/bin/generate.dart @@ -257,13 +257,13 @@ class CodegenLoader extends AssetLoader{ for (var file in files) { final localeName = path.basename(file.path).replaceFirst('.json', '').replaceAll('-', '_'); - listLocales.add('"$localeName": $localeName'); + listLocales.add('"$localeName": _$localeName'); final fileData = File(file.path); Map? data = json.decode(await fileData.readAsString()); final mapString = const JsonEncoder.withIndent(' ').convert(data); - gFile += 'static const Map $localeName = $mapString;\n'; + gFile += 'static const Map _$localeName = $mapString;\n'; } gFile +=