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 change: 0 additions & 1 deletion benchmark/complex-jit-aot.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const ctx = createCoreContext({
})

const i18n = createI18n({
legacy: false,
locale: 'en',
modifiers: {
caml: val => val
Expand Down
1 change: 0 additions & 1 deletion benchmark/complex-jit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const ctx = createCoreContext({
})

const i18n = createI18n({
legacy: false,
locale: 'en',
modifiers: {
caml: val => val
Expand Down
1 change: 0 additions & 1 deletion benchmark/complex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const ctx = createCoreContext({
})

const i18n = createI18n({
legacy: false,
locale: 'en',
modifiers: {
caml: val => val
Expand Down
1 change: 0 additions & 1 deletion benchmark/simple-jit-aot.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const ctx = createCoreContext({
})

const i18n = createI18n({
legacy: false,
locale: 'en',
messages: {
en: precompiledResources
Expand Down
1 change: 0 additions & 1 deletion benchmark/simple-jit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const ctx = createCoreContext({
})

const i18n = createI18n({
legacy: false,
locale: 'en',
messages: {
en: resources
Expand Down
1 change: 0 additions & 1 deletion benchmark/simple.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const ctx = createCoreContext({
})

const i18n = createI18n({
legacy: false,
locale: 'en',
messages: {
en: resources
Expand Down
2 changes: 1 addition & 1 deletion e2e/components/datetime-format.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'legacy'].forEach(pattern => {
;['composition'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(
Expand Down
2 changes: 1 addition & 1 deletion e2e/components/number-format.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'legacy'].forEach(pattern => {
;['composition'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/components/number-format.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/components/translation.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'legacy'].forEach(pattern => {
;['composition'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/components/translation.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/datetime.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from './helper'
;['composition', 'legacy'].forEach(pattern => {
;['composition'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/datetime.html`))
Expand Down
7 changes: 2 additions & 5 deletions e2e/fallback/basic.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
const warnings: string[] = []
beforeAll(async () => {
page.on('console', msg => {
if (msg.type() === 'warning') {
const text = msg.text()
if (
!text.match(/^\[intlify\] Legacy API mode has been/) &&
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
) {
if (!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)) {
warnings.push(msg.text())
}
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/fallback/component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/fallback/component.html`))
Expand Down
5 changes: 1 addition & 4 deletions e2e/fallback/default-format.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import { getText, url } from '../helper'
page.on('console', msg => {
if (msg.type() === 'warning') {
const text = msg.text()
if (
!text.match(/^\[intlify\] Legacy API mode has been/) &&
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
) {
if (!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)) {
warnings.push(msg.text())
}
}
Expand Down
7 changes: 2 additions & 5 deletions e2e/fallback/format.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
const warnings: string[] = []
beforeAll(async () => {
page.on('console', msg => {
if (msg.type() === 'warning') {
const text = msg.text()
if (
!text.match(/^\[intlify\] Legacy API mode has been/) &&
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
) {
if (!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)) {
warnings.push(msg.text())
}
}
Expand Down
5 changes: 1 addition & 4 deletions e2e/fallback/option.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import { getText, url } from '../helper'
page.on('console', msg => {
if (msg.type() === 'warning') {
const text = msg.text()
if (
!text.match(/^\[intlify\] Legacy API mode has been/) &&
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
) {
if (!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)) {
warnings.push(msg.text())
}
}
Expand Down
7 changes: 2 additions & 5 deletions e2e/fallback/suppress.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
const warnings: string[] = []
beforeAll(async () => {
page.on('console', msg => {
if (msg.type() === 'warning') {
const text = msg.text()
if (
!text.match(/^\[intlify\] Legacy API mode has been/) &&
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
) {
if (!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)) {
warnings.push(msg.text())
}
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/formatting/linked.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/formatting/linked.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/formatting/list.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/formatting/list.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/formatting/literal.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/formatting/literal.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/formatting/named.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/formatting/named.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/functions/linked.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/functions/linked.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/functions/list.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/functions/list.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/functions/named.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/functions/named.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/functions/plural.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/functions/plural.html`))
Expand Down
1 change: 0 additions & 1 deletion e2e/hotfix/CVE-2024-52809.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
}

const i18n = createI18n({
legacy: false,
locale: 'en',
messages: {
en
Expand Down
7 changes: 2 additions & 5 deletions e2e/missing/handler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
const warnings: string[] = []
beforeAll(async () => {
page.on('console', msg => {
if (msg.type() === 'warning') {
const text = msg.text()
if (
!text.match(/^\[intlify\] Legacy API mode has been/) &&
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
) {
if (!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)) {
warnings.push(msg.text())
}
}
Expand Down
5 changes: 1 addition & 4 deletions e2e/missing/option.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import { getText, url } from '../helper'
page.on('console', msg => {
if (msg.type() === 'warning') {
const text = msg.text()
if (
!text.match(/^\[intlify\] Legacy API mode has been/) &&
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
) {
if (!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)) {
warnings.push(msg.text())
}
}
Expand Down
7 changes: 2 additions & 5 deletions e2e/missing/suppress.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
const warnings: string[] = []
beforeAll(async () => {
page.on('console', msg => {
if (msg.type() === 'warning') {
const text = msg.text()
if (
!text.match(/^\[intlify\] Legacy API mode has been/) &&
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
) {
if (!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)) {
warnings.push(msg.text())
}
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/number.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from './helper'
;['composition', 'legacy'].forEach(pattern => {
;['composition'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/number.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/plural/basic.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/plural/basic.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/plural/custom.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/plural/custom.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/scope/global.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/scope/global.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/scope/inherit-locale.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/scope/inherit-locale.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/scope/local.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from '../helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/scope/local.html`))
Expand Down
2 changes: 1 addition & 1 deletion e2e/started.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getText, url } from './helper'
;['composition', 'petite', 'legacy'].forEach(pattern => {
;['composition', 'petite'].forEach(pattern => {
describe(`${pattern}`, () => {
beforeAll(async () => {
await page.goto(url(`/examples/${pattern}/started.html`))
Expand Down
3 changes: 1 addition & 2 deletions examples/backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import type { Locales } from './constants'
const messages = await load<Locales>(locales)

// create i18n instance
const i18n = createI18n<[ResourceSchema], Locales, false>({
legacy: false,
const i18n = createI18n<[ResourceSchema], Locales>({
locale: 'en',
messages
})
Expand Down
1 change: 0 additions & 1 deletion examples/composition/components/datetime-format.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ <h2>slot usages:</h2>
const { createI18n } = VueI18n

const i18n = createI18n({
legacy: false,
locale: 'en-US',
datetimeFormats: {
'en-US': {
Expand Down
1 change: 0 additions & 1 deletion examples/composition/components/number-format.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ <h2>slot usages:</h2>
const { createI18n } = VueI18n

const i18n = createI18n({
legacy: false,
locale: 'en-US',
numberFormats: {
'en-US': {
Expand Down
1 change: 0 additions & 1 deletion examples/composition/components/translation.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ <h2>localize with using plural:</h2>
const { createI18n, useI18n } = VueI18n

const i18n = createI18n({
legacy: false,
locale: 'ja',
messages: {
en: {
Expand Down
1 change: 0 additions & 1 deletion examples/composition/datetime.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ <h1>DateTime Localization for Composition API</h1>
const { createI18n, useI18n } = VueI18n

const i18n = createI18n({
legacy: false,
locale: 'ja-JP',
messages: {
'en-US': {
Expand Down
1 change: 0 additions & 1 deletion examples/composition/fallback/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
const { createI18n, useI18n } = VueI18n

const i18n = createI18n({
legacy: false,
locale: 'ja',
fallbackLocale: ['en'],
messages: {
Expand Down
1 change: 0 additions & 1 deletion examples/composition/fallback/component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ <h1>Root</h1>
const { createI18n, useI18n } = VueI18n

const i18n = createI18n({
legacy: false,
locale: 'ja',
messages: {
en: {
Expand Down
1 change: 0 additions & 1 deletion examples/composition/fallback/default-format.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
const { createI18n, useI18n } = VueI18n

const i18n = createI18n({
legacy: false,
locale: 'ja',
fallbackLocale: ['en'],
messages: {
Expand Down
1 change: 0 additions & 1 deletion examples/composition/fallback/format.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
const { createI18n, useI18n } = VueI18n

const i18n = createI18n({
legacy: false,
locale: 'ja',
fallbackFormat: true, // enable, fallback to locale message key
messages: {
Expand Down
Loading
Loading