Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 31dd1a3

Browse files
authored
feat(pwa): add default language to nuxt.config (#653)
1 parent 1d5a38d commit 31dd1a3

File tree

3 files changed

+160
-0
lines changed

3 files changed

+160
-0
lines changed

packages/cna-template/template/nuxt/nuxt.config.js

+14
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
titleTemplate: '%s - <%= name %>',
1717
<%_ } _%>
1818
title: '<%= name %>',
19+
<%_ if (!pwa) { _%>
20+
htmlAttrs, {
21+
lang: 'en'
22+
},
23+
<%_ } _%>
1924
meta: [
2025
{ charset: 'utf-8' },
2126
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
@@ -129,6 +134,15 @@
129134
// Axios module configuration (https://go.nuxtjs.dev/config-axios)
130135
axios: {},
131136
<%_ } _%>
137+
<%_ if (pwa) { _%>
138+
139+
// PWA module configuration (https://go.nuxtjs.dev/pwa)
140+
pwa: {
141+
manifest: {
142+
lang: 'en'
143+
}
144+
},
145+
<%_ } _%>
132146
<%_ if (content) { _%>
133147

134148
// Content module configuration (https://go.nuxtjs.dev/config-content)

0 commit comments

Comments
 (0)