Skip to content

Commit

Permalink
exclude description keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinya Kato committed Oct 20, 2023
1 parent 441324c commit 34cb87d
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 34cb87d

Please sign in to comment.