Skip to content

Commit c7cc6c5

Browse files
committed
chore: enhance i18n and add schema.org identity to nuxt.config.ts
- Configured i18n with locales, browser language detection, and base URL. - Added schema.org identity definition for improved SEO and metadata.
1 parent 2e323d3 commit c7cc6c5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

nuxt.config.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,20 @@ export default defineNuxtConfig({
154154
}
155155
},
156156
$production: {
157+
i18n: {
158+
strategy: 'prefix',
159+
defaultLocale: 'en',
160+
locales: [
161+
{code: 'de', iso: 'de-DE', name: 'Deutsch', file: 'de.json'},
162+
{code: 'en', iso: 'en-US', name: 'English', file: 'en.json'}
163+
],
164+
detectBrowserLanguage: {
165+
useCookie: true,
166+
cookieKey: 'i18n_redirected',
167+
redirectOn: 'root' // recommended
168+
},
169+
baseUrl: 'https://onelitefeather.net',
170+
},
157171
runtimeConfig: {
158172
public: {
159173
siteUrl: 'https://onelitefeather.net',
@@ -162,6 +176,25 @@ export default defineNuxtConfig({
162176
bluemapUrl: 'https://bluemap.onelitefeather.dev/',
163177
}
164178
},
179+
schemaOrg: {
180+
identity: defineOrganization({
181+
name: 'OneLiteFeather Network',
182+
alternateName: 'OneLiteFeather.net',
183+
description: 'OneLiteFeather is a Minecraft Network focusing on the development tools with intention to share with other servers. ',
184+
url: 'https://onelitefeather.net',
185+
logo: '/logo.svg',
186+
email: 'contact@onelitefeather.net',
187+
foundingDate: '2019-09-01',
188+
numberOfEmployees: {
189+
'@type': 'QuantitativeValue',
190+
'minValue': 1,
191+
'maxValue': 25
192+
},
193+
sameAs: [
194+
'https://github.com/OneLiteFeatherNET'
195+
]
196+
})
197+
},
165198
posthog: {
166199
publicKey: 'phc_t9nBlYL9LcDj4LDKZfQ97m5nbvFDTugkdQqAAspfdI',
167200
host: 'https://eu.i.posthog.com',

0 commit comments

Comments
 (0)