Translation System Test

Language Settings

Current: id

Translation Function: hello.world

Test Controls

Ayah Translation Test (ID: 1)

Current Translation:

No translation available

All Translations:

{}

Translation Status:

  • Indonesian:
  • English:
  • Malaysian:

Surah Translation Test (ID: 1)

Current Translation:

No translation available

All Translations:

{}

Translation Status:

  • Indonesian:
  • English:
  • Malaysian:

How to Test

1. Seed some translations first: Run npm run db:seed-simple-translations

2. Change language: Use the language switcher to test different languages

3. Test translations: Click the test buttons to fetch translations for specific IDs

4. Check fallbacks: If a language doesn't have a translation, it should fall back to Indonesian

5. Verify API: Check the browser network tab to see the API calls