Skip to content

Commit

Permalink
Merge branch 'main' into i10n-cs-cz
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinya Kato authored Oct 21, 2023
2 parents b321407 + 34cb87d commit 450f49a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/clean_arb_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:convert';
import 'dart:io';

const _templateFileName = 'strings_en.arb';
const _descriptionSymbol = '@';

const _jsonConverter = JsonEncoder.withIndent(' ');

Expand All @@ -18,7 +19,7 @@ void main(List<String> args) {

final cleanedArb = <String, dynamic>{};
templateJson.forEach((key, value) {
if (arbJson.containsKey(key)) {
if (arbJson.containsKey(key) && !key.startsWith(_descriptionSymbol)) {
cleanedArb[key] = arbJson[key];
}
});
Expand Down

0 comments on commit 450f49a

Please sign in to comment.