Skip to content

Commit

Permalink
fix(docs): 302 responses (#3364)
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Apr 23, 2023
1 parent ef946e3 commit e5cb3a1
Show file tree
Hide file tree
Showing 7 changed files with 387 additions and 113 deletions.
7 changes: 7 additions & 0 deletions packages/docs/i18n.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default defineI18nConfig(nuxt => ({
fallbackLocale: 'en',
silentTranslationWarn: true,
silentFallbackWarn: true,
warnHtmlInMessage: 'off',
escapeParameterHtml: true,
}))
2 changes: 2 additions & 0 deletions packages/docs/locales/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Notice, can not be moved to translations dir.

export type TranslationStatusPath = { [key in 'full' | 'part']: string }

export const languages = [
Expand Down
13 changes: 6 additions & 7 deletions packages/docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ export default defineNuxtConfig({
// './modules/banner',
'./modules/vuestic',
'./modules/page-config',
// "./modules/i18n",
// TODO: remove after i18n is released https://github.com/nuxt-modules/i18n/pull/1712
'@nuxtjs/google-fonts',
'@nuxtjs/i18n-edge',
'@nuxtjs/i18n',
'./modules/markdown',
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
Expand Down Expand Up @@ -149,12 +147,13 @@ export default defineNuxtConfig({
// cookieKey: 'i18n_locale',
// },

lazy: true,
// lazy: true,

langDir: 'locales/',
langDir: 'translations/',

vueI18n: {
fallbackLocale: 'en',
precompile: {
strictMessage: false,
escapeHtml: true
},
},

Expand Down
4 changes: 3 additions & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@nuxt/eslint-config": "^0.1.1",
"@nuxt/postcss8": "^1.1.3",
"@nuxtjs/color-mode": "^3.2.0",
"@nuxtjs/i18n-edge": "^8.0.0-beta.7-27893843.b72135e",
"@nuxtjs/i18n": "^8.0.0-beta.11",
"@nuxtjs/tailwindcss": "^6.3.0",
"@types/escodegen": "^0.0.7",
"@types/estree": "^1.0.0",
Expand All @@ -32,6 +32,8 @@
"stylelint": "^13.13.1",
"stylelint-config-standard": "^22.0.0",
"vitest": "^0.18.1",
"vue-i18n": "^9.2.2",
"vue-router": "^4.1.6",
"vue-tsc": "^1.0.24"
},
"dependencies": {
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit e5cb3a1

Please sign in to comment.