-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Currently Spacialist only supports english and german language. Any other language is very welcome! No matter if they are widespread (as e.g. french, italian, arabic) or endangered (e.g. hawaiian).
To add translations for another language simply
- duplicate
resources/js/i18n/en.jsand rename it to match your country code and, if required, your region (e.g. fr for french or en-gb for british english or simply en for non-regional english vocabulary). - Rename in the first line of your duplicated file
const entoconst CODEand at the end of your fileexport default entoexport default CODE - Edit
resources/js/bootstrap/i18n.jsand import your new added language (import CODE from ../i18n/CODE) and add it to the messages object
Example (adding french)
Before
// Some imports ...
import en from '../i18n/en';
import de from '../i18n/de';
const messages = {
en: en,
de: de
}
// More codeAfter
// Some imports ...
import en from '../i18n/en';
import de from '../i18n/de';
import fr from '../i18n/fr';
const messages = {
en: en,
de: de,
fr: fr,
}
// More codeReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels