Skip to content

Commit

Permalink
NU-1889 provide i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzuming committed Nov 21, 2024
1 parent e0edca8 commit c774966
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ interface AddLabelProps {
onClick: () => void;
}

const labelUniqueValidation = (label: string) => ({ label, messages: ["This label already exists. Please enter a unique value."] });
const labelUniqueValidation = (label: string) => ({
label,
messages: [
i18next.t("panels.scenarioDetails.labels.validation.uniqueValue", "This label already exists. Please enter a unique value."),
],
});

const AddLabel = ({ onClick }: AddLabelProps) => {
return (
Expand Down

0 comments on commit c774966

Please sign in to comment.