diff --git a/lang/en/messages.php b/lang/en/messages.php index d0b0ecf..11d9d07 100644 --- a/lang/en/messages.php +++ b/lang/en/messages.php @@ -18,6 +18,7 @@ 'assets_base_url_instructions' => 'The base URL to prepend to the path.', 'assets_download_when_missing_instructions' => 'If the asset can\'t be found in the asset container, should it be downloaded?', + 'assets_folder_instructions' => 'By default, downloaded assets will use same folder structure as the original URL. You can specify a different folder here.', 'assets_related_field_instructions' => 'Which field does the data reference?', 'entries_create_when_missing_instructions' => 'Create the entry if it doesn\'t exist.', 'entries_related_field_instructions' => 'Which field does the data reference?', diff --git a/src/Transformers/AssetsTransformer.php b/src/Transformers/AssetsTransformer.php index e8bbdae..c03d084 100644 --- a/src/Transformers/AssetsTransformer.php +++ b/src/Transformers/AssetsTransformer.php @@ -113,7 +113,7 @@ public function fieldItems(): array 'folder' => [ 'type' => 'asset_folder', 'display' => __('Folder'), - 'instructions' => __('By default, downloaded assets will use same folder structure as the original URL. You can specify a different folder here.'), + 'instructions' => __('importer::messages.assets_folder_instructions'), 'if' => ['download_when_missing' => true], 'container' => $this->field->get('container'), 'max_items' => 1, diff --git a/src/Transformers/BardTransformer.php b/src/Transformers/BardTransformer.php index 5123fff..ac9d4a3 100644 --- a/src/Transformers/BardTransformer.php +++ b/src/Transformers/BardTransformer.php @@ -107,7 +107,7 @@ public function fieldItems(): array 'assets_folder' => [ 'type' => 'asset_folder', 'display' => __('Folder'), - 'instructions' => __('By default, downloaded assets will use same folder structure as the original URL. You can specify a different folder here.'), + 'instructions' => __('importer::messages.assets_folder_instructions'), 'if' => ['assets_download_when_missing' => true], 'container' => $this->field->get('container'), 'max_items' => 1,