diff --git a/src/Autocomplete/CHANGELOG.md b/src/Autocomplete/CHANGELOG.md
index b869da8e420..1237b13dddd 100644
--- a/src/Autocomplete/CHANGELOG.md
+++ b/src/Autocomplete/CHANGELOG.md
@@ -1,5 +1,10 @@
# CHANGELOG
+## 2.21.0
+
+- Translate the `option_create` option from TomSelect with remote data setup #2279
+- Add one missing Dutch translation #2279
+
## 2.20.0
- Translate the `option_create` option from TomSelect #2108
diff --git a/src/Autocomplete/assets/dist/controller.js b/src/Autocomplete/assets/dist/controller.js
index c6e9660b1d6..7d9d148dd26 100644
--- a/src/Autocomplete/assets/dist/controller.js
+++ b/src/Autocomplete/assets/dist/controller.js
@@ -318,7 +318,7 @@ _default_1_instances = new WeakSet(), _default_1_getCommonConfig = function _def
return `
${this.noResultsFoundTextValue}
`;
},
option_create: (data, escapeData) => {
- return `${this.createOptionTextValue} ${escapeData(data.input)}…
`;
+ return `${this.createOptionTextValue.replace('%placeholder%', `${escapeData(data.input)}`)}
`;
},
},
preload: this.preload,
diff --git a/src/Autocomplete/assets/src/controller.ts b/src/Autocomplete/assets/src/controller.ts
index af7f096a387..62fe734ecb1 100644
--- a/src/Autocomplete/assets/src/controller.ts
+++ b/src/Autocomplete/assets/src/controller.ts
@@ -253,7 +253,7 @@ export default class extends Controller {
return `${this.noResultsFoundTextValue}
`;
},
option_create: (data: TomOption, escapeData: typeof escape_html): string => {
- return `${this.createOptionTextValue} ${escapeData(data.input)}…
`;
+ return `${this.createOptionTextValue.replace('%placeholder%', `${escapeData(data.input)}`)}
`;
},
},
preload: this.preload,
diff --git a/src/Autocomplete/translations/AutocompleteBundle.nl.php b/src/Autocomplete/translations/AutocompleteBundle.nl.php
index d9a2a90c092..106be824958 100644
--- a/src/Autocomplete/translations/AutocompleteBundle.nl.php
+++ b/src/Autocomplete/translations/AutocompleteBundle.nl.php
@@ -13,5 +13,5 @@
'Loading more results...' => 'Meer resultaten aan het laden...',
'No results found' => 'Geen resultaten gevonden…',
'No more results' => 'Niet meer resultaten gevonden…',
- // 'Add %placeholder%...' => 'Add %placeholder%...',
+ 'Add %placeholder%...' => 'Voeg %placeholder% toe...',
];