Skip to content

Commit 0e88c1c

Browse files
authored
Merge pull request #692 from PatrickChrestin/679
Fixes 679
2 parents 5cdd460 + 7550ecd commit 0e88c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/generate.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ class CodegenLoader extends AssetLoader{
257257
for (var file in files) {
258258
final localeName =
259259
path.basename(file.path).replaceFirst('.json', '').replaceAll('-', '_');
260-
listLocales.add('"$localeName": $localeName');
260+
listLocales.add('"$localeName": _$localeName');
261261
final fileData = File(file.path);
262262

263263
Map<String, dynamic>? data = json.decode(await fileData.readAsString());
264264

265265
final mapString = const JsonEncoder.withIndent(' ').convert(data);
266-
gFile += 'static const Map<String,dynamic> $localeName = $mapString;\n';
266+
gFile += 'static const Map<String,dynamic> _$localeName = $mapString;\n';
267267
}
268268

269269
gFile +=

0 commit comments

Comments
 (0)