Skip to content

Commit dfa8a0f

Browse files
author
cgiuliani
committed
fix: issue with lists being at same depth
1 parent 8e81fc6 commit dfa8a0f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: configurator/lib/src/utils/i18n_generator.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ void _generateList({
343343
depth: depth + 1,
344344
);
345345
} else if (value is ObjectNode) {
346-
final String key = depth.toString() + 'i' + i.toString();
346+
// final String key = depth.toString() + 'i' + i.toString();
347+
final String key = node.path.split('.').last.canonicalize + depth.toString() + 'i' + i.toString();
347348
final String childClassNoLocale =
348349
getClassName(parentName: className, childName: key);
349350

Diff for: configurator_flutter/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies:
2929
git:
3030
url: [email protected]:camrongiuliani/configurator.git
3131
path: configurator
32-
ref: 0.0.17
32+
ref: 0.0.18
3333

3434
dev_dependencies:
3535
flutter_test:

0 commit comments

Comments
 (0)