Skip to content

Commit

Permalink
🧑‍💻 (whatsapp) Set default template language to en_US
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Feb 8, 2024
1 parent 2cc1b44 commit 26be94d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ export const GroupSelectionMenu = ({
borderRightRadius="none"
borderLeftRadius="none"
aria-label="Copy"
onClick={handleCopy}
onClick={() => {
handleCopy()
toast('Groups copied to clipboard')
}}
bgColor={useColorModeValue('white', undefined)}
icon={<CopyIcon />}
size="sm"
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/self-hosting/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ In order to be able to test your bot on WhatsApp from the Preview drawer, you ne
| META_SYSTEM_USER_TOKEN | | The system user token used to send WhatsApp messages |
| WHATSAPP_PREVIEW_FROM_PHONE_NUMBER_ID | | The phone number ID from which the message will be sent |
| WHATSAPP_PREVIEW_TEMPLATE_NAME | | The preview start template message name |
| WHATSAPP_PREVIEW_TEMPLATE_LANG | en | The preview start template message name |
| WHATSAPP_PREVIEW_TEMPLATE_LANG | en_US | The preview start template message name |
| WHATSAPP_CLOUD_API_URL | https://graph.facebook.com | The WhatsApp Cloud API base URL |

## Others
Expand Down
6 changes: 5 additions & 1 deletion packages/env/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ const whatsAppEnv = {
META_SYSTEM_USER_TOKEN: z.string().min(1).optional(),
WHATSAPP_PREVIEW_FROM_PHONE_NUMBER_ID: z.string().min(1).optional(),
WHATSAPP_PREVIEW_TEMPLATE_NAME: z.string().min(1).optional(),
WHATSAPP_PREVIEW_TEMPLATE_LANG: z.string().min(1).optional().default('en'),
WHATSAPP_PREVIEW_TEMPLATE_LANG: z
.string()
.min(1)
.optional()
.default('en_US'),
WHATSAPP_CLOUD_API_URL: z
.string()
.url()
Expand Down

0 comments on commit 26be94d

Please sign in to comment.