feat: homepage animations; Arabic as default locale
This commit is contained in:
@@ -37,7 +37,7 @@ const deniedTypes = [
|
||||
/**
|
||||
* The locales the site ships with.
|
||||
*
|
||||
* `en` is the default (LTR) and `ar` is the right-to-left translation. The web
|
||||
* `ar` is the default (RTL) and `en` is the left-to-right translation. The web
|
||||
* app mirrors these codes in its URL prefixes (`/en/...`, `/ar/...`), so the
|
||||
* codes here are part of the public contract - do not rename them.
|
||||
*
|
||||
@@ -47,8 +47,8 @@ const deniedTypes = [
|
||||
* here plus a restart.
|
||||
*/
|
||||
const locales = [
|
||||
{ code: 'en', name: 'English (en)', isDefault: true },
|
||||
{ code: 'ar', name: 'Arabic (ar)' },
|
||||
{ code: 'ar', name: 'Arabic (ar)', isDefault: true },
|
||||
{ code: 'en', name: 'English (en)' },
|
||||
];
|
||||
|
||||
const config = ({ env }: Core.Config.Shared.ConfigParams): Core.Config.Plugin => ({
|
||||
@@ -59,7 +59,7 @@ const config = ({ env }: Core.Config.Shared.ConfigParams): Core.Config.Plugin =>
|
||||
i18n: {
|
||||
enabled: true,
|
||||
config: {
|
||||
defaultLocale: 'en',
|
||||
defaultLocale: 'ar',
|
||||
locales,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user