+
+
diff --git a/i18n/locales/en.json b/i18n/locales/en.json
index 66f0eb39b5..00f5edd373 100644
--- a/i18n/locales/en.json
+++ b/i18n/locales/en.json
@@ -432,7 +432,11 @@
"filter_placeholder": "Filter by semver (e.g. ^3.0.0)",
"filter_invalid": "Invalid semver range",
"filter_help": "Semver range filter help",
+ "license_change_help": "License Change Details",
+ "license_change_item": "from {from} to {to} at version {version}",
"filter_tooltip": "Filter versions using a {link}. For example, ^3.0.0 shows all 3.x versions.",
+ "changed_license": "The license was changed {license_change}",
+ "license_change_warning": "License change!",
"filter_tooltip_link": "semver range",
"no_matches": "No versions match this range",
"copy_alt": {
diff --git a/i18n/locales/tr-TR.json b/i18n/locales/tr-TR.json
index 8d686950a3..a83ef6f268 100644
--- a/i18n/locales/tr-TR.json
+++ b/i18n/locales/tr-TR.json
@@ -386,7 +386,11 @@
"filter_placeholder": "Semver ile filtrele (örn. ^3.0.0)",
"filter_invalid": "Geçersiz semver aralığı",
"filter_help": "Semver aralığı filtresi yardımı",
+ "license_change_help": "Lisans değişikliği yardımı",
+ "license_change_item": "{version} sürümünde {from}'den {to}'ya",
"filter_tooltip": "Sürümleri {link} kullanarak filtreleyin. Örneğin, ^3.0.0 tüm 3.x sürümlerini gösterir.",
+ "changed_license": "Lisans değişikliği gerçekleşti: {license_change}",
+ "license_change_warning": "Lisans değişikliği!",
"filter_tooltip_link": "semver aralığı",
"no_matches": "Bu aralığa uygun sürüm yok",
"copy_alt": {
diff --git a/i18n/schema.json b/i18n/schema.json
index 35f289f1fb..0398321ab1 100644
--- a/i18n/schema.json
+++ b/i18n/schema.json
@@ -1300,9 +1300,21 @@
"filter_help": {
"type": "string"
},
+ "license_change_help": {
+ "type": "string"
+ },
+ "license_change_item": {
+ "type": "string"
+ },
"filter_tooltip": {
"type": "string"
},
+ "changed_license": {
+ "type": "string"
+ },
+ "license_change_warning": {
+ "type": "string"
+ },
"filter_tooltip_link": {
"type": "string"
},
diff --git a/test/nuxt/a11y.spec.ts b/test/nuxt/a11y.spec.ts
index 46bba7bba1..1c433e0019 100644
--- a/test/nuxt/a11y.spec.ts
+++ b/test/nuxt/a11y.spec.ts
@@ -235,6 +235,7 @@ import {
PackageSelectionView,
PackageSelectionCheckbox,
PackageExternalLinks,
+ LicenseChangeWarning,
ChartSplitSparkline,
TabRoot,
TabList,
@@ -349,6 +350,22 @@ describe('component accessibility audits', () => {
})
})
+ describe('LicenseChangeWarning', () => {
+ it('should have no accessibility violations', async () => {
+ const component = await mountSuspended(LicenseChangeWarning, {
+ props: {
+ packageName: 'vue',
+ resolvedVersion: '3.4.0',
+ },
+ global: {
+ mocks: { $t: (key: string) => key },
+ stubs: { 'i18n-t': { template: '
' } },
+ },
+ })
+ const results = await runAxe(component)
+ expect(results.violations).toEqual([])
+ })
+ })
describe('AppLogo', () => {
it('should have no accessibility violations', async () => {
const component = await mountSuspended(AppLogo)