@codecademy/gamut

73.5.073.5.1-alpha.7af239.0
dist/Form/SelectDropdown/core/translations.js
+dist/Form/SelectDropdown/core/translations.jsNew file
+28
Index: package/dist/Form/SelectDropdown/core/translations.js
===================================================================
--- package/dist/Form/SelectDropdown/core/translations.js
+++ package/dist/Form/SelectDropdown/core/translations.js
@@ -0,0 +1,28 @@
+/**
+ * Message shown inside the menu when no option matches. Either static content
+ * or a function of the current input value.
+ */
+
+/**
+ * Custom translations for SelectDropdown's UI / microcopy strings.
+ * Pass a partial object via the `translations` prop; provided keys are merged
+ * over these English defaults (see `DEFAULT_SELECT_DROPDOWN_TRANSLATIONS`).
+ */
+
+/**
+ * Default English translations. Kept internal (not re-exported from the package)
+ * — only the `SelectDropdownTranslations` type is public, matching BarChart/DatePicker.
+ */
+export const DEFAULT_SELECT_DROPDOWN_TRANSLATIONS = {
+  placeholder: 'Select an option',
+  validationMessage: 'No options',
+  formatCreateLabel: inputValue => `Add "${inputValue}"`,
+  removeOptionLabel: label => `Remove ${label}`,
+  clearAllLabel: 'Remove all selected',
+  focusedOptionAnnouncement: ({
+    label,
+    subtitle,
+    rightLabel,
+    disabled
+  }) => [`You are currently focused on option ${label}`, subtitle, rightLabel, disabled && 'disabled'].filter(Boolean).join(', ')
+};
\ No newline at end of file