🌐 Add theme tab translation keys (#1119)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Implemented internationalization across various components, enabling
dynamic language translation for UI elements.

- **Enhancements**
	- Improved accessibility with translated `aria-label` attributes.
	- Enhanced user interface with translated button texts and labels.

- **Refactor**
	- Streamlined translation handling with the `useTranslate` hook.

- **Bug Fixes**
	- Corrected tooltip label for better clarity.

- **Style**
	- Updated visual elements to reflect changes in language settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
This commit is contained in:
Gabriel Pavão
2023-12-29 08:02:14 -03:00
committed by GitHub
parent f26eafd26f
commit 5fbbe9d86e
23 changed files with 186 additions and 62 deletions

View File

@@ -120,6 +120,9 @@
"collaboration.roles.edit.label": "Can edit",
"collaboration.roles.full.label": "Full access",
"collaboration.roles.view.label": "Can view",
"colorPicker.advancedColors": "Advanced colors",
"colorPicker.colorValue.ariaLabel": "Color value",
"colorPicker.pickColor.ariaLabel": "Pick a color",
"confirmModal.defaultTitle": "Are you sure?",
"copied": "Copied",
"copy": "Copy",
@@ -146,7 +149,6 @@
"editor.blocks.bubbles.textEditor.plate.label": "Text editor",
"editor.blocks.bubbles.textEditor.searchVariable.placeholder": "Search for a variable",
"editor.blocks.start.text": "Start",
"editor.editableTypebotName.tooltip.rename.label": "Rename",
"editor.gettingStartedModal.editorBasics.heading": "Editor Basics",
"editor.gettingStartedModal.editorBasics.list.four.label": "Preview your bot by clicking the test button on the top right",
"editor.gettingStartedModal.editorBasics.list.label": "Feel free to use the bottom-right bubble to reach out if you have any question. I usually answer within the next 24 hours. \uD83D\uDE03",
@@ -241,8 +243,6 @@
"publish.error.label": "Error while publishing typebot",
"publish.versionWarning.checkBreakingChanges": "Make sure to check out all the <link>associated breaking changes</link>",
"publish.versionWarning.message.aboutToDeploy.label": "You are about to a deploy a version of your bot with an updated engine. (Typebot V6).",
"publish.versionWarning.message.breakingChanges.label": "associated breaking changes",
"publish.versionWarning.message.check.label": "Make sure to check out all the",
"publish.versionWarning.message.testInPreviewMode.label": "Then test, the bot thoroughly in preview mode before publishing.",
"publish.versionWarning.title.label": "⚠️ New engine version",
"publishButton.closed.label": "Closed",
@@ -254,9 +254,10 @@
"publishButton.label": "Publish",
"publishButton.published.label": "Published",
"publishButton.tooltip.nonPublishedChanges.label": "There are non published changes.",
"publishButton.tooltip.publishedVersion.ago.label": "ago",
"publishButton.tooltip.publishedVersion.from.label": "Published version from <timeSince>test</timeSince>.",
"publishButton.tooltip.publishedVersion.from.label": "Published version from {timeSince}.",
"remove": "Remove",
"rename": "Rename",
"save": "Save",
"share.button.label": "Share",
"share.button.popover.ariaLabel": "Open share popover",
"share.button.popover.collaboratorsFetch.error.label": "Couldn't fetch collaborators",
@@ -310,6 +311,39 @@
"templates.modal.product.userOnboarding.description": "A bot that asks for new user information before he start using your product.",
"templates.modal.product.userOnboarding.name": "User Onboarding",
"templates.modal.useTemplateButton.label": "Use this template",
"theme.sideMenu.chat": "Chat",
"theme.sideMenu.chat.botAvatar": "Bot avatar",
"theme.sideMenu.chat.botBubbles": "Bot bubbles",
"theme.sideMenu.chat.buttons": "Buttons",
"theme.sideMenu.chat.cornersRoundness": "Corners roundness",
"theme.sideMenu.chat.inputs": "Inputs",
"theme.sideMenu.chat.theme.background": "Background:",
"theme.sideMenu.chat.theme.placeholder": "Placeholder text:",
"theme.sideMenu.chat.theme.text": "Text:",
"theme.sideMenu.chat.userAvatar": "User avatar",
"theme.sideMenu.chat.userBubbles": "User bubbles",
"theme.sideMenu.customCSS": "Custom CSS",
"theme.sideMenu.global": "Global",
"theme.sideMenu.global.background": "Background",
"theme.sideMenu.global.background.color": "Background color:",
"theme.sideMenu.global.background.color.select": "Color",
"theme.sideMenu.global.background.image.alt": "Background image",
"theme.sideMenu.global.background.image.button": "Select an image",
"theme.sideMenu.global.background.image.select": "Image",
"theme.sideMenu.global.background.none.select": "None",
"theme.sideMenu.global.font": "Font",
"theme.sideMenu.global.typebotBrand": "Show Typebot brand",
"theme.sideMenu.template": "Template",
"theme.sideMenu.template.gallery": "Gallery",
"theme.sideMenu.template.gallery.avatarPreview.alt": "Avatar preview in theme template card",
"theme.sideMenu.template.myTemplates": "My templates",
"theme.sideMenu.template.myTemplates.menu.ariaLabel": "Open template menu",
"theme.sideMenu.template.myTemplates.saveTheme": "Save current theme",
"theme.sideMenu.template.myTemplates.saveTheme.myTemplate": "My template",
"theme.sideMenu.template.myTemplates.saveTheme.name": "Name:",
"theme.sideMenu.template.myTemplates.saveTheme.saveAsNew": "Save as new template",
"theme.sideMenu.template.myTemplates.saveTheme.title": "Save theme",
"theme.sideMenu.title": "Customize the theme",
"timeSince.days": "{count}d ago",
"timeSince.hours": "{count}h ago",
"timeSince.minutes": "{count}m ago",
@@ -317,6 +351,7 @@
"timeSince.seconds": "{count}s ago",
"timeSince.years": "{count} years ago",
"typebots.defaultName": "My typebot",
"update": "Update",
"upgrade": "Upgrade",
"variables.button.searchInput.placeholder": "Search for a variable",
"variables.button.tooltip": "Insert a variable",