From 34cb87dde26a07537156766898f8a6497c31150b Mon Sep 17 00:00:00 2001 From: Shinya Kato Date: Fri, 20 Oct 2023 10:06:34 +0900 Subject: [PATCH] exclude description keys --- bin/clean_arb_file.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/clean_arb_file.dart b/bin/clean_arb_file.dart index fdff495..850835d 100644 --- a/bin/clean_arb_file.dart +++ b/bin/clean_arb_file.dart @@ -2,6 +2,7 @@ import 'dart:convert'; import 'dart:io'; const _templateFileName = 'strings_en.arb'; +const _descriptionSymbol = '@'; const _jsonConverter = JsonEncoder.withIndent(' '); @@ -18,7 +19,7 @@ void main(List args) { final cleanedArb = {}; templateJson.forEach((key, value) { - if (arbJson.containsKey(key)) { + if (arbJson.containsKey(key) && !key.startsWith(_descriptionSymbol)) { cleanedArb[key] = arbJson[key]; } });