You are here

public function CurrencyImporter::importTranslations in Commerce Core 8.2

Imports translations for the given language codes.

Parameters

array $langcodes: Array of language codes to import translations for.

Overrides CurrencyImporterInterface::importTranslations

File

modules/price/src/CurrencyImporter.php, line 124

Class

CurrencyImporter
Default implementation of the currency importer.

Namespace

Drupal\commerce_price

Code

public function importTranslations(array $langcodes) {
  foreach ($this->storage
    ->loadMultiple() as $currency) {
    $this
      ->importEntityTranslations($currency, $langcodes);
  }
}