Full locales
Description
Add an option to select a language for translation of the administrative control panel
Create
Create the file fullLoacales.ts as follows from the example
Example:
src/lib/fullLocales.ts
import { AdminFullLocales } from '../types';
export const fullLocales: AdminFullLocales[] = [
{ value: 'en', name: 'English' },
{ value: 'de', name: 'Deutch' }
];
Implementation
Example:
import { fullLocales } from 'lib/fullLocales';
export default function AdminDashboard() {
return (
<MarkusAdmin
fullLocales={fullLocales}
/>
)
}
tip
The default option is "en". For each new option you add, you must also add a translation. Create a new file and create a new option "de" in it, as in the example: