初始化

This commit is contained in:
yziiy
2025-08-11 11:06:07 +08:00
parent 083bc37c00
commit 5607d11395
19772 changed files with 3108723 additions and 18 deletions

View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2021 kazuya kawaguchi
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,13 @@
# @intlify/devtools-if
The [`@intlify/devtools`](https://github.com/intlify/devtools) interface(I/F:if) for intlify projects
## :warning: NOTE:
This is experimental.
Dont use in production yet.
## :copyright: License
[MIT](http://opensource.org/licenses/MIT)

View File

@@ -0,0 +1,15 @@
/*!
* @intlify/devtools-if v9.1.9
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const IntlifyDevToolsHooks = {
I18nInit: 'i18n:init',
FunctionTranslate: 'function:translate'
};
exports.IntlifyDevToolsHooks = IntlifyDevToolsHooks;

View File

@@ -0,0 +1,15 @@
/*!
* @intlify/devtools-if v9.1.9
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const IntlifyDevToolsHooks = {
I18nInit: 'i18n:init',
FunctionTranslate: 'function:translate'
};
exports.IntlifyDevToolsHooks = IntlifyDevToolsHooks;

View File

@@ -0,0 +1,43 @@
import type { Emittable } from '@intlify/shared';
export declare type AdditionalPayloads = {
meta?: Record<string, unknown>;
};
export declare type IntlifyDevToolsEmitter = Emittable<IntlifyDevToolsEmitterHooks>;
export declare type IntlifyDevToolsEmitterHooks = {
[IntlifyDevToolsHooks.I18nInit]: IntlifyDevToolsHookPayloads[typeof IntlifyDevToolsHooks.I18nInit];
[IntlifyDevToolsHooks.FunctionTranslate]: IntlifyDevToolsHookPayloads[typeof IntlifyDevToolsHooks.FunctionTranslate];
};
export declare type IntlifyDevToolsHookPayloads = {
[IntlifyDevToolsHooks.I18nInit]: {
timestamp: number;
i18n: unknown;
version: string;
} & AdditionalPayloads;
[IntlifyDevToolsHooks.FunctionTranslate]: {
timestamp: number;
message: string | number;
key: string;
locale: string;
format?: string;
} & AdditionalPayloads;
};
export declare const IntlifyDevToolsHooks: {
readonly I18nInit: "i18n:init";
readonly FunctionTranslate: "function:translate";
};
export declare type IntlifyDevToolsHooks = typeof IntlifyDevToolsHooks[keyof typeof IntlifyDevToolsHooks];
export declare interface IntlifyRecord {
id: number;
i18n: unknown;
version: string;
types: Record<string, string | Symbol>;
}
export { }

View File

@@ -0,0 +1,11 @@
/*!
* @intlify/devtools-if v9.1.9
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
const IntlifyDevToolsHooks = {
I18nInit: 'i18n:init',
FunctionTranslate: 'function:translate'
};
export { IntlifyDevToolsHooks };

View File

@@ -0,0 +1,7 @@
'use strict'
if (process.env.NODE_ENV === 'production') {
module.exports = require('./dist/devtools-if.cjs.prod.js')
} else {
module.exports = require('./dist/devtools-if.cjs.js')
}

View File

@@ -0,0 +1,49 @@
{
"name": "@intlify/devtools-if",
"version": "9.1.9",
"description": "@intlify/devtools-if",
"keywords": [
"devtools",
"i18n",
"internationalization",
"intlify"
],
"license": "MIT",
"author": {
"name": "kazuya kawaguchi",
"email": "kawakazu80@gmail.com"
},
"homepage": "https://github.com/intlify/vue-i18n-next/tree/master/packages/devtools-if#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/intlify/vue-i18n-next.git",
"directory": "packages/devtools-if"
},
"bugs": {
"url": "https://github.com/intlify/vue-i18n-next/issues"
},
"files": [
"index.js",
"dist"
],
"main": "index.js",
"module": "dist/devtools-if.esm-bundler.js",
"types": "dist/devtools-if.d.ts",
"dependencies": {
"@intlify/shared": "9.1.9"
},
"engines": {
"node": ">= 10"
},
"buildOptions": {
"name": "IntlifyDevToolsIf",
"formats": [
"esm-bundler",
"cjs"
]
},
"publishConfig": {
"access": "public"
},
"sideEffects": false
}