Add internationalization support with astro-i18next integration
- Implemented astro-i18next for multi-language support, including English, Dutch, and Italian. - Configured default locale and language fallback settings. - Defined routes for localized content in the configuration. - Updated package.json and package-lock.json to include new dependencies for i18next and related plugins.
This commit is contained in:
22
node_modules/cross-fetch/dist/node-ponyfill.js
generated
vendored
Normal file
22
node_modules/cross-fetch/dist/node-ponyfill.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
const nodeFetch = require('node-fetch')
|
||||
const realFetch = nodeFetch.default || nodeFetch
|
||||
|
||||
const fetch = function (url, options) {
|
||||
// Support schemaless URIs on the server for parity with the browser.
|
||||
// Ex: //github.com/ -> https://github.com/
|
||||
if (/^\/\//.test(url)) {
|
||||
url = 'https:' + url
|
||||
}
|
||||
return realFetch.call(this, url, options)
|
||||
}
|
||||
|
||||
fetch.ponyfill = true
|
||||
|
||||
module.exports = exports = fetch
|
||||
exports.fetch = fetch
|
||||
exports.Headers = nodeFetch.Headers
|
||||
exports.Request = nodeFetch.Request
|
||||
exports.Response = nodeFetch.Response
|
||||
|
||||
// Needed for TypeScript consumers without esModuleInterop.
|
||||
exports.default = fetch
|
Reference in New Issue
Block a user