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