Skip to content

Commit

Permalink
🌐 [open-formulieren/open-forms#2177] Translations
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmolen committed Jan 15, 2025
1 parent 60f860f commit ba12ad7
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 22 deletions.
50 changes: 45 additions & 5 deletions i18n/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@
"description": "Operator 'subtract' option label",
"originalDefault": "Subtract"
},
"9oJuUL": {
"defaultMessage": "Marker",
"description": "Label for 'interactions.marker' builder field",
"originalDefault": "Marker"
},
"AClYLf": {
"defaultMessage": "If checked, the current day is an allowed value.",
"description": "Tooltip for 'date constraint includeToday' builder validation field",
Expand Down Expand Up @@ -469,6 +474,11 @@
"description": "Label for the 'columns' builder field",
"originalDefault": "Column sizes"
},
"Gjhh/5": {
"defaultMessage": "Available drawing shapes",
"description": "Map interaction configuration panel title",
"originalDefault": "Available drawing shapes"
},
"GjumK9": {
"defaultMessage": "Specify the size of each column. The sum of all the widths should be 100%.",
"description": "Tooltip for 'columns' builder field",
Expand Down Expand Up @@ -679,6 +689,11 @@
"description": "Double column label",
"originalDefault": "Double column"
},
"T64zDz": {
"defaultMessage": "Polygon",
"description": "Label for 'interactions.polygon' builder field",
"originalDefault": "Polygon"
},
"TCNvqa": {
"defaultMessage": "Minimum date",
"description": "Date field 'minDate' fixed value label",
Expand Down Expand Up @@ -794,6 +809,11 @@
"description": "Tooltip for 'Multiple values' builder field",
"originalDefault": "Are there multiple values possible for this field?"
},
"WXpj4j": {
"defaultMessage": "Users can set a marker on the map",
"description": "Tooltip for 'interactions.marker' builder field",
"originalDefault": "Users can set a marker on the map"
},
"WZJG0y": {
"defaultMessage": "In the past",
"description": "Date constraint mode 'past' label",
Expand Down Expand Up @@ -914,6 +934,11 @@
"description": "Label for address houseletter",
"originalDefault": "House letter addition"
},
"b64egT": {
"defaultMessage": "Users can draw shapes (polygons) on the map",
"description": "Tooltip for 'interactions.polygon' builder field",
"originalDefault": "Users can draw shapes (polygons) on the map"
},
"bYBFBc": {
"defaultMessage": "Whether to show this value in the submission summary",
"description": "Tooltip for 'showInSummary' builder field",
Expand Down Expand Up @@ -999,11 +1024,6 @@
"description": "Date field 'minDate' validation panel title",
"originalDefault": "Minimum date {configured, select, false {(not set)} other {}}"
},
"e6SsfR": {
"defaultMessage": "Map configuration",
"description": "Map configuration panel title",
"originalDefault": "Map configuration"
},
"eAmrdi": {
"defaultMessage": "Loading...",
"description": "Loading content text",
Expand Down Expand Up @@ -1244,6 +1264,11 @@
"description": "Tooltip for 'operator' in relative delta date constraint validation",
"originalDefault": "Specify whether to add or subtract a time delta to/from the variable."
},
"mRmbnJ": {
"defaultMessage": "Line",
"description": "Label for 'interactions.polyline' builder field",
"originalDefault": "Line"
},
"mWuCXv": {
"defaultMessage": "Optionally provide additional information to explain the meaning of the option.",
"description": "Tooltip for option/choice description",
Expand Down Expand Up @@ -1339,6 +1364,11 @@
"description": "Label for 'NumberOfRows' builder field",
"originalDefault": "Number of rows"
},
"pM92DZ": {
"defaultMessage": "Users can draw straight lines on the map",
"description": "Tooltip for 'interactions.polyline' builder field",
"originalDefault": "Users can draw straight lines on the map"
},
"pT5jx/": {
"defaultMessage": "Column size on mobile, value between 1 and 4.",
"description": "Accessible label for column mobile size",
Expand All @@ -1349,6 +1379,11 @@
"description": "Selectboxes dummy option for itemsExpression",
"originalDefault": "Options from expression: <code>{expression}</code>"
},
"pdmkVe": {
"defaultMessage": "Initial focus",
"description": "Map initial focus panel title",
"originalDefault": "Initial focus"
},
"pfdsz9": {
"defaultMessage": "House number addition",
"description": "Label for address housenumberaddition",
Expand Down Expand Up @@ -1464,6 +1499,11 @@
"description": "Tooltip for 'prefill.attribute' builder field",
"originalDefault": "Specify the attribute holding the pre-fill data."
},
"wJ7Yha": {
"defaultMessage": "Map settings",
"description": "Component edit form tab title for 'Map settings' tab",
"originalDefault": "Map settings"
},
"wOq8Pb": {
"defaultMessage": "Translation for option with value \"{value}\"",
"description": "Accessible label for option label translation field",
Expand Down
50 changes: 45 additions & 5 deletions i18n/messages/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@
"description": "Operator 'subtract' option label",
"originalDefault": "Subtract"
},
"9oJuUL": {
"defaultMessage": "Pin/punt",
"description": "Label for 'interactions.marker' builder field",
"originalDefault": "Marker"
},
"AClYLf": {
"defaultMessage": "Indien aangevinkt, dan is de dag op het moment van evaluatie een geldige datum.",
"description": "Tooltip for 'date constraint includeToday' builder validation field",
Expand Down Expand Up @@ -475,6 +480,11 @@
"description": "Label for the 'columns' builder field",
"originalDefault": "Column sizes"
},
"Gjhh/5": {
"defaultMessage": "Beschikbare vormen",
"description": "Map interaction configuration panel title",
"originalDefault": "Available drawing shapes"
},
"GjumK9": {
"defaultMessage": "Geef de grootte van elke kolom op. De som van alle breedtes moet 100% zijn.",
"description": "Tooltip for 'columns' builder field",
Expand Down Expand Up @@ -688,6 +698,11 @@
"description": "Double column label",
"originalDefault": "Double column"
},
"T64zDz": {
"defaultMessage": "Veelhoek (Polygoon)",
"description": "Label for 'interactions.polygon' builder field",
"originalDefault": "Polygon"
},
"TCNvqa": {
"defaultMessage": "Minimale datum",
"description": "Date field 'minDate' fixed value label",
Expand Down Expand Up @@ -804,6 +819,11 @@
"description": "Tooltip for 'Multiple values' builder field",
"originalDefault": "Are there multiple values possible for this field?"
},
"WXpj4j": {
"defaultMessage": "Gebruikers kunnen een punt aanduiden op de kaart.",
"description": "Tooltip for 'interactions.marker' builder field",
"originalDefault": "Users can set a marker on the map"
},
"WZJG0y": {
"defaultMessage": "In het verleden",
"description": "Date constraint mode 'past' label",
Expand Down Expand Up @@ -925,6 +945,11 @@
"description": "Label for address houseletter",
"originalDefault": "House letter addition"
},
"b64egT": {
"defaultMessage": "Gebruikers kunnen een veelhoek (gesloten vorm die uit rechte lijnen bestaat) tekenen.",
"description": "Tooltip for 'interactions.polygon' builder field",
"originalDefault": "Users can draw shapes (polygons) on the map"
},
"bYBFBc": {
"defaultMessage": "Geef aan of deze waarde in het bevestigscherm moet getoond worden.",
"description": "Tooltip for 'showInSummary' builder field",
Expand Down Expand Up @@ -1011,11 +1036,6 @@
"description": "Date field 'minDate' validation panel title",
"originalDefault": "Minimum date {configured, select, false {(not set)} other {}}"
},
"e6SsfR": {
"defaultMessage": "Kaartinstellingen",
"description": "Map configuration panel title",
"originalDefault": "Map configuration"
},
"eAmrdi": {
"defaultMessage": "Aan het laden...",
"description": "Loading content text",
Expand Down Expand Up @@ -1260,6 +1280,11 @@
"description": "Tooltip for 'operator' in relative delta date constraint validation",
"originalDefault": "Specify whether to add or subtract a time delta to/from the variable."
},
"mRmbnJ": {
"defaultMessage": "Lijn",
"description": "Label for 'interactions.polyline' builder field",
"originalDefault": "Line"
},
"mWuCXv": {
"defaultMessage": "Je kan een extra omschrijving opnemen om een keuzeoptie te verduidelijken.",
"description": "Tooltip for option/choice description",
Expand Down Expand Up @@ -1357,6 +1382,11 @@
"description": "Label for 'NumberOfRows' builder field",
"originalDefault": "Number of rows"
},
"pM92DZ": {
"defaultMessage": "Gebruikers kunnen rechte lijnen tekenen op de kaart.",
"description": "Tooltip for 'interactions.polyline' builder field",
"originalDefault": "Users can draw straight lines on the map"
},
"pT5jx/": {
"defaultMessage": "Kolombreedte op mobiel, de waarde moet tussen 1 en 4 liggen.",
"description": "Accessible label for column mobile size",
Expand All @@ -1367,6 +1397,11 @@
"description": "Selectboxes dummy option for itemsExpression",
"originalDefault": "Options from expression: <code>{expression}</code>"
},
"pdmkVe": {
"defaultMessage": "Begin focuspunt",
"description": "Map initial focus panel title",
"originalDefault": "Initial focus"
},
"pfdsz9": {
"defaultMessage": "Huisnummertoevoeging",
"description": "Label for address housenumberaddition",
Expand Down Expand Up @@ -1484,6 +1519,11 @@
"description": "Tooltip for 'prefill.attribute' builder field",
"originalDefault": "Specify the attribute holding the pre-fill data."
},
"wJ7Yha": {
"defaultMessage": "Kaartinstellingen",
"description": "Component edit form tab title for 'Map settings' tab",
"originalDefault": "Map settings"
},
"wOq8Pb": {
"defaultMessage": "Vertaling voor het label van de optie met waarde \"{value}\"",
"description": "Accessible label for option label translation field",
Expand Down
16 changes: 8 additions & 8 deletions src/registry/map/interaction-configuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const PolygonInteraction: React.FC = () => {
const intl = useIntl();
const tooltip = intl.formatMessage({
description: "Tooltip for 'interactions.polygon' builder field",
defaultMessage: 'Allowing users to draw a polygon when using the map component',
defaultMessage: 'Users can draw shapes (polygons) on the map',
});
return (
<Checkbox
name="interactions.polygon"
label={
<FormattedMessage
description="Label for 'interactions.polygon' builder field"
defaultMessage="Polygon interactions"
defaultMessage="Polygon"
/>
}
tooltip={tooltip}
Expand All @@ -26,15 +26,15 @@ const PolylineInteraction: React.FC = () => {
const intl = useIntl();
const tooltip = intl.formatMessage({
description: "Tooltip for 'interactions.polyline' builder field",
defaultMessage: 'Allowing users to draw a line when using the map component',
defaultMessage: 'Users can draw straight lines on the map',
});
return (
<Checkbox
name="interactions.polyline"
label={
<FormattedMessage
description="Label for 'interactions.polyline' builder field"
defaultMessage="Line interactions"
defaultMessage="Line"
/>
}
tooltip={tooltip}
Expand All @@ -46,15 +46,15 @@ const MarkerInteraction: React.FC = () => {
const intl = useIntl();
const tooltip = intl.formatMessage({
description: "Tooltip for 'interactions.marker' builder field",
defaultMessage: 'Allowing users to set a marker when using the map component',
defaultMessage: 'Users can set a marker on the map',
});
return (
<Checkbox
name="interactions.marker"
label={
<FormattedMessage
description="Label for 'interactions.marker' builder field"
defaultMessage="Marker interactions"
defaultMessage="Marker"
/>
}
tooltip={tooltip}
Expand All @@ -66,8 +66,8 @@ const InteractionConfiguration: React.FC = () => (
<Panel
title={
<FormattedMessage
description="Interaction configuration panel title"
defaultMessage="Available map interactions"
description="Map interaction configuration panel title"
defaultMessage="Available drawing shapes"
/>
}
>
Expand Down
4 changes: 2 additions & 2 deletions src/registry/map/map-configuration.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const NotUsingGlobalConfig: Story = {
});

await step('Open configuration panel', async () => {
const panelTitle = await canvas.findByText('Map configuration');
const panelTitle = await canvas.findByText('Initial focus');
await waitFor(async () => {
expect(panelTitle).toBeVisible();
});
Expand Down Expand Up @@ -89,7 +89,7 @@ export const UsingGlobalConfig: Story = {
});

await step('Toggle checkbox to enable global configuration', async () => {
const panelTitle = await canvas.findByText('Map configuration');
const panelTitle = await canvas.findByText('Initial focus');
await waitFor(async () => {
expect(panelTitle).toBeVisible();
});
Expand Down
4 changes: 2 additions & 2 deletions src/registry/map/map-configuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ const MapConfiguration: React.FC = () => (
<Panel
title={
<FormattedMessage
description="Map configuration panel title"
defaultMessage="Map configuration"
description="Map initial focus panel title"
defaultMessage="Initial focus"
/>
}
collapsible
Expand Down

0 comments on commit ba12ad7

Please sign in to comment.