{connectionStatus === 'connected'
- ? 'Your access token authenticates with Meta. See Registration status below for whether webhooks are actually wired.'
+ ? t('connectedDesc')
: statusMessage ||
- 'Configure your Meta API credentials below to connect your WhatsApp Business account.'}
+ t('notConnectedDesc')}
@@ -475,8 +477,8 @@ export function WhatsAppConfig() {
}
>
{isRegistered
- ? 'Registered — Meta will deliver events to wacrm'
- : 'Not registered — Meta will not deliver events'}
+ ? t('registered')
+ : t('notRegistered')}
)}
- Verify with Meta
+ {t('verifyWithMeta')}
{isRegistered ? (
- <>
- Subscribed since{' '}
- {config.registered_at
- ? new Date(config.registered_at).toLocaleString()
- : 'unknown'}
- . Click Verify with Meta if events
- stop arriving.
- >
+
) : lastRegistrationError ? (
<>
- Last attempt failed with:{' '}
+ {t('lastAttemptFailed')}
"{lastRegistrationError}"
- . Enter (or correct) the 2-step PIN below and click
- Save Configuration to retry.
+ . {t('retryHint')}
>
) : (
- <>
- This number was saved before registration tracking
- existed, or registration was skipped. Enter the
- 2-step PIN below and click Save Configuration to
- subscribe it.
- >
+ <>{t('noRegistrationHint')}>
)}
{registrationProbe && (
@@ -560,14 +557,14 @@ export function WhatsAppConfig() {
{/* API Credentials */}
- API Credentials
+ {t('apiCredentialsTitle')}
- Enter your Meta WhatsApp Business API credentials.
+ {t('apiCredentialsDesc')}
-
+
-
+
-
+
{
setAccessToken(e.target.value);
@@ -615,34 +612,34 @@ export function WhatsAppConfig() {
{config && !tokenEdited && (
- Token is hidden for security. Re-enter it to update configuration.
+ {t('tokenHidden')}
- Needed only to wire inbound messages
- for a production number. Set it in{' '}
-
- Meta Business Manager → WhatsApp Accounts → Phone
- Numbers → Two-step verification
-
- , then paste it here so wacrm can subscribe the number —
- otherwise Meta routes inbound events to whichever app
- last claimed it (the symptom that hits second numbers
- under a shared WABA).{' '}
- Meta test numbers have no
- PIN and are pre-registered — leave this blank for them.
- Leaving it blank also keeps an existing registration
- untouched.
+
@@ -672,14 +656,14 @@ export function WhatsAppConfig() {
{/* Webhook URL */}
- Webhook Configuration
+ {t('webhookTitle')}
- Use this URL as your webhook callback in the Meta App Dashboard.
+ {t('webhookDesc')}
- Setup Instructions
+ {t('setupInstructions')}
- Follow these steps to connect your WhatsApp Business API.
+ {t('setupInstructionsDesc')}
@@ -771,15 +755,15 @@ export function WhatsAppConfig() {
1
- Create a Meta App
+ {t('step1')}
-