Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,635 changes: 0 additions & 1,635 deletions packages/cli/plugin-i18n/CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/generator/generator-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"dependencies": {
"@modern-js/codesmith-formily": "2.6.8",
"@modern-js/plugin-i18n": "workspace:*",
"@modern-js/i18n-utils": "workspace:*",
"@swc/helpers": "^0.5.17"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/generator/generator-common/src/locale/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18n } from '@modern-js/plugin-i18n';
import { I18n } from '@modern-js/i18n-utils';
import { EN_LOCALE } from './en';
import { ZH_LOCALE } from './zh';

Expand Down
2 changes: 1 addition & 1 deletion packages/generator/generator-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dependencies": {
"@modern-js/codesmith-utils": "2.6.8",
"@modern-js/generator-common": "workspace:*",
"@modern-js/plugin-i18n": "workspace:*",
"@modern-js/i18n-utils": "workspace:*",
"@swc/helpers": "^0.5.17",
"glob": "7.2.3",
"js-yaml": "4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/generator/generator-utils/src/locale/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18n } from '@modern-js/plugin-i18n';
import { I18n } from '@modern-js/i18n-utils';
import { EN_LOCALE } from './en';
import { ZH_LOCALE } from './zh';

Expand Down
2 changes: 1 addition & 1 deletion packages/generator/generators/bff-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@modern-js/codesmith-utils": "2.6.8",
"@modern-js/generator-common": "workspace:*",
"@modern-js/generator-utils": "workspace:*",
"@modern-js/plugin-i18n": "workspace:*",
"@modern-js/i18n-utils": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
"@types/jest": "^29.5.14",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18n } from '@modern-js/plugin-i18n';
import { I18n } from '@modern-js/i18n-utils';
import { EN_LOCALE } from './en';
import { ZH_LOCALE } from './zh';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@modern-js/codesmith-utils": "2.6.8",
"@modern-js/generator-common": "workspace:*",
"@modern-js/generator-utils": "workspace:*",
"@modern-js/plugin-i18n": "workspace:*",
"@modern-js/i18n-utils": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
"@types/jest": "^29.5.14",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18n } from '@modern-js/plugin-i18n';
import { I18n } from '@modern-js/i18n-utils';
import { EN_LOCALE } from './en';
import { ZH_LOCALE } from './zh';

Expand Down
2 changes: 1 addition & 1 deletion packages/generator/generators/entry-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@modern-js/codesmith-utils": "2.6.8",
"@modern-js/generator-common": "workspace:*",
"@modern-js/generator-utils": "workspace:*",
"@modern-js/plugin-i18n": "workspace:*",
"@modern-js/i18n-utils": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
"@types/jest": "^29.5.14",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18n } from '@modern-js/plugin-i18n';
import { I18n } from '@modern-js/i18n-utils';
import { EN_LOCALE } from './en';
import { ZH_LOCALE } from './zh';

Expand Down
2 changes: 1 addition & 1 deletion packages/generator/generators/mwa-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@modern-js/entry-generator": "workspace:*",
"@modern-js/generator-common": "workspace:*",
"@modern-js/generator-utils": "workspace:*",
"@modern-js/plugin-i18n": "workspace:*",
"@modern-js/i18n-utils": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
"@types/jest": "^29.5.14",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18n } from '@modern-js/plugin-i18n';
import { I18n } from '@modern-js/i18n-utils';
import { EN_LOCALE } from './en';
import { ZH_LOCALE } from './zh';

Expand Down
2 changes: 1 addition & 1 deletion packages/generator/generators/ssg-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@modern-js/dependence-generator": "workspace:*",
"@modern-js/generator-common": "workspace:*",
"@modern-js/generator-utils": "workspace:*",
"@modern-js/plugin-i18n": "workspace:*",
"@modern-js/i18n-utils": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
"@types/jest": "^29.5.14",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18n } from '@modern-js/plugin-i18n';
import { I18n } from '@modern-js/i18n-utils';
import { EN_LOCALE } from './en';
import { ZH_LOCALE } from './zh';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@modern-js/codesmith-utils": "2.6.8",
"@modern-js/generator-common": "workspace:*",
"@modern-js/generator-utils": "workspace:*",
"@modern-js/plugin-i18n": "workspace:*",
"@modern-js/i18n-utils": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
"@types/jest": "^29.5.14",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18n } from '@modern-js/plugin-i18n';
import { I18n } from '@modern-js/i18n-utils';
import { EN_LOCALE } from './en';
import { ZH_LOCALE } from './zh';

Expand Down
2 changes: 1 addition & 1 deletion packages/solutions/app-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"@babel/types": "^7.28.4",
"@modern-js/node-bundle-require": "workspace:*",
"@modern-js/plugin-data-loader": "workspace:*",
"@modern-js/plugin-i18n": "workspace:*",
"@modern-js/i18n-utils": "workspace:*",
"@modern-js/plugin": "workspace:*",
"@modern-js/prod-server": "workspace:*",
"@modern-js/server": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/solutions/app-tools/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path';
import { castArray } from '@modern-js/builder';
import { getLocaleLanguage } from '@modern-js/i18n-utils/language-detector';
import { createAsyncHook } from '@modern-js/plugin';
import { getLocaleLanguage } from '@modern-js/plugin-i18n/language-detector';
import {
cleanRequireCache,
deprecatedCommands,
Expand Down
2 changes: 1 addition & 1 deletion packages/solutions/app-tools/src/locale/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18n } from '@modern-js/plugin-i18n';
import { I18n } from '@modern-js/i18n-utils';
import { EN_LOCALE } from './en';
import { ZH_LOCALE } from './zh';

Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@modern-js/codesmith": "2.6.8",
"@modern-js/codesmith-utils": "2.6.8",
"@modern-js/mwa-generator": "workspace:*",
"@modern-js/plugin-i18n": "workspace:*",
"@modern-js/i18n-utils": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
"@types/jest": "^29.5.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/create/src/createAction.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path';
import { CodeSmith, type Logger } from '@modern-js/codesmith';
import { ora } from '@modern-js/codesmith-utils/ora';
import { getLocaleLanguage } from '@modern-js/plugin-i18n/language-detector';
import { getLocaleLanguage } from '@modern-js/i18n-utils/language-detector';
import { version as pkgVersion } from '../package.json';
import { i18n, localeKeys } from './locale';
import { createDir } from './utils';
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/create/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getLocaleLanguage } from '@modern-js/plugin-i18n/language-detector';
import { getLocaleLanguage } from '@modern-js/i18n-utils/language-detector';
import { Command } from 'commander';
import { cleanCacheAction } from './cleanCacheAction';
import { createAction } from './createAction';
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/create/src/locale/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18n } from '@modern-js/plugin-i18n';
import { I18n } from '@modern-js/i18n-utils';
import { EN_LOCALE } from './en';
import { ZH_LOCALE } from './zh';

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@modern-js/plugin-i18n",
"name": "@modern-js/i18n-utils",
"description": "A Progressive React Framework for modern web development.",
"homepage": "https://modernjs.dev",
"bugs": "https://github.com/web-infra-dev/modern.js/issues",
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/upgrade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"devDependencies": {
"@modern-js/codesmith": "2.6.8",
"@modern-js/codesmith-utils": "2.6.8",
"@modern-js/plugin-i18n": "workspace:*",
"@modern-js/i18n-utils": "workspace:*",
"@modern-js/upgrade-generator": "workspace:*",
"@scripts/build": "workspace:*",
"@scripts/jest-config": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/upgrade/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getLocaleLanguage } from '@modern-js/plugin-i18n/language-detector';
import { getLocaleLanguage } from '@modern-js/i18n-utils/language-detector';
import { Command } from 'commander';
import { i18n, localeKeys } from './locale';
import type { Options } from './upgrade';
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/upgrade/src/locale/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I18n } from '@modern-js/plugin-i18n';
import { I18n } from '@modern-js/i18n-utils';
import { EN_LOCALE } from './en';
import { ZH_LOCALE } from './zh';

Expand Down
Loading
Loading