mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
i18n implementation & Login i18n
This commit is contained in:
12
i18n/languages/en.json
Normal file
12
i18n/languages/en.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"Home": {
|
||||
"TitleUnder": "Dashboard to manage your entire server infrastructure",
|
||||
"LoginCardTitle": "Login",
|
||||
"LoginCardDescription": "Enter your credentials to continue",
|
||||
"AuthenticationError": "Authentication Error",
|
||||
"Email": "Email",
|
||||
"Password": "Password",
|
||||
"SigninButton": "Sign in",
|
||||
"SigninButtonSigningIn": "Signing in..."
|
||||
}
|
||||
}
|
||||
12
i18n/request.ts
Normal file
12
i18n/request.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import {getRequestConfig} from 'next-intl/server';
|
||||
|
||||
export default getRequestConfig(async () => {
|
||||
// Provide a static locale, fetch a user setting,
|
||||
// read from `cookies()`, `headers()`, etc.
|
||||
const locale = 'en';
|
||||
|
||||
return {
|
||||
locale,
|
||||
messages: (await import(`./languages/${locale}.json`)).default
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user