Search in sources :

Example 1 with BaseMultilingualDictionary

use of org.datatransferproject.spi.transfer.i18n.BaseMultilingualDictionary in project data-transfer-project by google.

the class GooglePhotosImporter method getOrCreateStringDictionary.

private synchronized BaseMultilingualDictionary getOrCreateStringDictionary(UUID jobId) {
    if (!multilingualStrings.containsKey(jobId)) {
        PortabilityJob job = jobStore.findJob(jobId);
        String locale = job != null ? job.userLocale() : null;
        multilingualStrings.put(jobId, new BaseMultilingualDictionary(locale));
    }
    return multilingualStrings.get(jobId);
}
Also used : PortabilityJob(org.datatransferproject.spi.cloud.types.PortabilityJob) BaseMultilingualDictionary(org.datatransferproject.spi.transfer.i18n.BaseMultilingualDictionary)

Aggregations

PortabilityJob (org.datatransferproject.spi.cloud.types.PortabilityJob)1 BaseMultilingualDictionary (org.datatransferproject.spi.transfer.i18n.BaseMultilingualDictionary)1