package com.github.mathieudebrito.translator;

import com.github.mathieudebrito.translator.generators.android.ResourcesStringsFileGenerator;
import com.github.mathieudebrito.translator.parsers.android.ResourcesStringsFileParser;

import java.util.ArrayList;

public class TranslatorAndroidValues {

    public static final String GOOGLE_API_KEY = "AIzaSyBKLWxBb2nMr9bIb4-PRUkHH7Df8-fxmAw";

    @org.junit.Test
    public void testInit() throws Exception {

        String root = "/Users/mathieudebrito/IdeaProjects/file-translator/src/test/resources";

        Translator.Config config = new Translator.Config();
        config.key = GOOGLE_API_KEY;
        config.languageFrom = Language.ENGLISH;
        config.languageTo = Language.toList( Language.FRENCH);
        config.files = new ArrayList<FileToTranslate>();
        config.files.add(new FileToTranslate(root, new ResourcesStringsFileParser(), new ResourcesStringsFileGenerator()));

        Translator translator = new TranslatorGoogle();
        translator.init(config);

        translator.translate();
    }


}
@@ -345,47 +345,8 @@
  = %22
-AIzaSyBKLWxBb2nMr9bIb4-PRUkHH7Df8-fxmAw
 %22;%0A%0A
@@ -1029,8 +1029,9 @@
    %7D%0A%0A%0A%7D
+%0A

Update TranslatorAndroidValues.java