ScaffoldHub
  • Introduction
  • Modeling
  • Setup
    • NextJS
    • File Storage
    • Payments with Stripe
  • Debugging
  • End-to-end and Unit Tests
  • Deployment
    • Deploy to Vercel
  • Features
    • Projects
    • Preview
    • Tenants
    • Subscriptions and Payments
    • Security
    • File Storage
    • Authentication
      • Sign-in and Sign-up and Social Sign-in
      • Invitation
      • Password Reset
      • Password Change
      • Email Verification
    • Entity
      • Form
      • Filter and List
      • Export
      • Import
    • Audit Logs
    • Internationalization (I18n)
    • API Keys
    • API Documentation
  • Package.json
  • Support
  • Changelog
    • Documentation
    • Scaffolds
  • Custom Development
  • Legacy Scaffolds
  • Go to ScaffoldHub
Powered by GitBook
On this page
  1. Features

Internationalization (I18n)

PreviousAudit LogsNextAPI Keys

Last updated 1 year ago

ScaffoldHub has built-in internationalization.

You can select the language on the sign-in page.

Or change it on the header I18n dropdown.

Then, your application will be entirely translated.

Code

You can find translations in the src/translation/[lang]/[lang].ts folder.

Sometimes you need to add variables to the translations, like in this case:

cannotDeleteReferenced: `Cannot delete {0} because it's referenced by one or more {1}.`,

You need to use the formatTranslation method and pass the variables as arguments, in order.