@@ -87,6 +87,7 @@ private static void processCommandLine(CommandLine cmd) throws Exception {
8787 List <Map <String , Object >> textsEn = new ArrayList <>();
8888 List <Map <String , Object >> textsDe = new ArrayList <>();
8989 List <Map <String , Object >> textsRu = new ArrayList <>();
90+ List <Map <String , Object >> textsUa = new ArrayList <>();
9091 for (Map <String , Object > textItem : texts ) {
9192 Map <String , Object > textItemEn = new LinkedHashMap <>();
9293 textItemEn .put ("-id" , textItem .get ("-id" ));
@@ -100,13 +101,19 @@ private static void processCommandLine(CommandLine cmd) throws Exception {
100101 textItemRu .put ("-id" , textItem .get ("-id" ));
101102 textItemRu .put ("ru" , textItem .get ("ru" ));
102103 textsRu .add (textItemRu );
104+ Map <String , Object > textItemUa = new LinkedHashMap <>();
105+ textItemUa .put ("-id" , textItem .get ("-id" ));
106+ textItemUa .put ("ua" , textItem .get ("ua" ));
107+ textsUa .add (textItemUa );
103108 }
104109 final Path pathEn = Paths .get ("" , new String [] { file .getPath ().replaceFirst ("\\ .xml$" , "-en.json" ) });
105110 final Path pathDe = Paths .get ("" , new String [] { file .getPath ().replaceFirst ("\\ .xml$" , "-de.json" ) });
106111 final Path pathRu = Paths .get ("" , new String [] { file .getPath ().replaceFirst ("\\ .xml$" , "-ru.json" ) });
112+ final Path pathUa = Paths .get ("" , new String [] { file .getPath ().replaceFirst ("\\ .xml$" , "-ua.json" ) });
107113 Files .write (pathEn , Json .toJson (textsEn ).getBytes (StandardCharsets .UTF_8 ));
108114 Files .write (pathDe , Json .toJson (textsDe ).getBytes (StandardCharsets .UTF_8 ));
109115 Files .write (pathRu , Json .toJson (textsRu ).getBytes (StandardCharsets .UTF_8 ));
116+ Files .write (pathUa , Json .toJson (textsUa ).getBytes (StandardCharsets .UTF_8 ));
110117 } catch (Exception ex ) {
111118 System .out .println (file .getPath () + " - " + ex .getMessage ());
112119 }
0 commit comments