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();
    }


}
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 = "";

    @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();
    }


}

Update TranslatorAndroidValues.java