public class Exporter extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Exporter.SheetContract
Defines sheet operations required by
Exporter. |
| Constructor and Description |
|---|
Exporter(TranslationCollector translationCollector,
TranslationSnapshotWriteContract snapshot,
Exporter.SheetContract gsc,
AntPathResourceLoader resourceLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
walkPathsAndWriteSheets(List<String> patternPaths,
List<String> translationLangs,
String spreadsheetId,
Path snapshotPath)
Walks message file paths, gathering messages and translations, producing translation sheets in given GSheet spreadsheet.
|
void |
walkPathsAndWriteSheets(List<String> patternPaths,
List<String> translationLangs,
String spreadsheetId,
Path snapshotPath,
List<String> lockedCellEditors)
Walks message file paths, gathering messages and translations, producing translation sheets in given GSheet spreadsheet.
|
public Exporter(TranslationCollector translationCollector, TranslationSnapshotWriteContract snapshot, Exporter.SheetContract gsc, AntPathResourceLoader resourceLoader)
public void walkPathsAndWriteSheets(List<String> patternPaths, List<String> translationLangs, String spreadsheetId, Path snapshotPath)
patternPaths - paths of message files to exporttranslationLangs - languages to translate messages tospreadsheetId - id of GSheets spreadsheet, must be emptysnapshotPath - path to the translation snapshot filepublic void walkPathsAndWriteSheets(List<String> patternPaths, List<String> translationLangs, String spreadsheetId, Path snapshotPath, List<String> lockedCellEditors)
patternPaths - paths of message files to exporttranslationLangs - languages to translate messages tospreadsheetId - id of GSheets spreadsheet, must be emptysnapshotPath - path to the translation snapshot filelockedCellEditors - list of Google account emails, these account will have the permission to edit locked cellsCopyright © 2021 FG Forrest, a.s.. All rights reserved.