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:
34
node_modules/@proload/plugin-tsm/CHANGELOG.md
generated
vendored
Normal file
34
node_modules/@proload/plugin-tsm/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
# Changelog
|
||||
|
||||
## 0.2.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [72c8577]
|
||||
- @proload/core@0.3.2
|
||||
|
||||
## 0.2.1-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [5cbbe02]
|
||||
- @proload/core@0.3.2-next.0
|
||||
|
||||
## 0.2.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [4c7215e]
|
||||
- Updated dependencies [ddce5c6]
|
||||
- @proload/core@0.3.0
|
||||
|
||||
## 0.1.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- dae1cce: Update @proload/core dependency
|
||||
- 645446c: Fix support for `.cts` and `.mts` files
|
||||
|
||||
## v0.1.0
|
||||
|
||||
Initial release
|
11
node_modules/@proload/plugin-tsm/README.md
generated
vendored
Normal file
11
node_modules/@proload/plugin-tsm/README.md
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# `@proload/plugin-tsm`
|
||||
|
||||
Enables the loading of `[namespace].config.ts`, `[namespace].config.cts`, and `[namespace].config.mts` files using [`@proload/core`](https://github.com/natemoo-re/proload).
|
||||
|
||||
```js
|
||||
import load from '@proload/core';
|
||||
import typescript from '@proload/plugin-tsm';
|
||||
|
||||
load.use([typescript]);
|
||||
await load('namespace');
|
||||
```
|
9
node_modules/@proload/plugin-tsm/lib/index.cjs
generated
vendored
Normal file
9
node_modules/@proload/plugin-tsm/lib/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
name: '@proload/plugin-tsm',
|
||||
extensions: ['ts', 'tsx', 'cts', 'mts'],
|
||||
async register(fileName) {
|
||||
if (/\.([cm]ts|tsx?)$/.test(fileName)) {
|
||||
require('tsm');
|
||||
}
|
||||
}
|
||||
}
|
5
node_modules/@proload/plugin-tsm/lib/index.d.ts
generated
vendored
Normal file
5
node_modules/@proload/plugin-tsm/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Plugin } from '@proload/core';
|
||||
|
||||
declare const typescriptPlugin: Plugin;
|
||||
|
||||
export default typescriptPlugin;
|
2
node_modules/@proload/plugin-tsm/lib/index.mjs
generated
vendored
Normal file
2
node_modules/@proload/plugin-tsm/lib/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import plugin from './index.cjs';
|
||||
export default plugin;
|
36
node_modules/@proload/plugin-tsm/package.json
generated
vendored
Normal file
36
node_modules/@proload/plugin-tsm/package.json
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "@proload/plugin-tsm",
|
||||
"version": "0.2.1",
|
||||
"description": "A proload plugin to support TypeScript files using TSM",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.mjs",
|
||||
"types": "./lib/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./lib/index.mjs",
|
||||
"require": "./lib/index.cjs"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"proload-plugin",
|
||||
"typescript"
|
||||
],
|
||||
"author": "Nate Moore <nate@natemoo.re>",
|
||||
"peerDependencies": {
|
||||
"@proload/core": "^0.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"tsm": "^2.1.4"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/natemoo-re/proload.git",
|
||||
"directory": "packages/plugin-typescript"
|
||||
},
|
||||
"homepage": "https://github.com/natemoo-re/proload#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/natemoo-re/proload/issues"
|
||||
}
|
||||
}
|
24
node_modules/@proload/plugin-tsm/test/index.mjs
generated
vendored
Normal file
24
node_modules/@proload/plugin-tsm/test/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { test } from 'uvu';
|
||||
import { is, type } from 'uvu/assert';
|
||||
import { resolve } from 'path';
|
||||
import load from '@proload/core';
|
||||
import typescript from '@proload/plugin-tsm';
|
||||
|
||||
test.before(() => {
|
||||
load.use([typescript]);
|
||||
})
|
||||
|
||||
test('sanity', () => {
|
||||
type(typescript, 'object');
|
||||
})
|
||||
|
||||
const fixtures = ['ts', 'ts-config', 'cts', 'mts'];
|
||||
|
||||
for (const fixture of fixtures) {
|
||||
test(fixture, async () => {
|
||||
let mdl = await load('test', { cwd: resolve(`fixtures/${fixture}`) });
|
||||
is(mdl.value.value, fixture)
|
||||
});
|
||||
}
|
||||
|
||||
test.run();
|
Reference in New Issue
Block a user