Add default and fallback language

This commit is contained in:
Marvin Sextro 2021-07-02 22:56:12 +02:00
parent edddc9b24e
commit a7cc4ff559
2 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,7 @@ RUN adduser -S nextjs -u 1001
# You only need to copy next.config.js if you are NOT using the default configuration
COPY --from=builder /app/next.config.js ./
COPY --from=builder /app/next-i18next.config.js ./next-i18next.config.js
COPY --from=builder /app/next-i18next.config.js ./
COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules

View File

@ -3,5 +3,7 @@ module.exports = {
defaultLocale: 'en',
locales: ['en'],
localeExtension: 'yml',
defaultLanguage: 'en',
fallbackLng: ['en'],
},
};