Skip to content

Commit

Permalink
Name update
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod committed Dec 12, 2023
1 parent 540f0a7 commit 41dfb8d
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion extension-manifest-v2/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@
},
"name": {
"description": "The title of this extension (Ghostery).",
"message": "Ghostery Tracker- & Werbeblocker | Datenschutz AdBlocker"
"message": "Ghostery Tracker- & Werbeblocker | AdBlocker"
},
"never_consent": {
"message": "Never-Consent"
Expand Down
2 changes: 1 addition & 1 deletion extension-manifest-v2/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@
},
"name": {
"description": "The title of this extension (Ghostery).",
"message": "Ghostery Tracker & Ad Blocker - Privacy AdBlock"
"message": "Ghostery Tracker Ad Blocker - Privacy AdBlock"
},
"never_consent": {
"message": "Never-Consent"
Expand Down
2 changes: 1 addition & 1 deletion extension-manifest-v2/_locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@
},
"name": {
"description": "The title of this extension (Ghostery).",
"message": "Ghostery Rastreador & Bloqueador de anuncios - Privacidad AdBlock"
"message": "Ghostery Bloqueador de Anuncios& Rastreadores"
},
"never_consent": {
"message": "Never-Consent"
Expand Down
2 changes: 1 addition & 1 deletion extension-manifest-v2/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@
},
"name": {
"description": "The title of this extension (Ghostery).",
"message": "Ghostery Bloqueur de Traqueurs et de Publicités - confidentialité"
"message": "Ghostery Bloqueur de Traqueurs et Publicités"
},
"never_consent": {
"message": "Never-Consent"
Expand Down
2 changes: 1 addition & 1 deletion extension-manifest-v2/_locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@
},
"name": {
"description": "The title of this extension (Ghostery).",
"message": "Ghostery Blocco Annunci e Tracker - Privacy AdBlock"
"message": "Ghostery Blocco Annunci e Tracker - AdBlock"
},
"never_consent": {
"message": "Never-Consent"
Expand Down
2 changes: 1 addition & 1 deletion extension-manifest-v2/_locales/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@
},
"name": {
"description": "The title of this extension (Ghostery).",
"message": "Ghostery Bloker Trackerów i Reklam - Prywatność AdBlock"
"message": "Ghostery Bloker Trackerów i Reklam - AdBlock"
},
"never_consent": {
"message": "Never-Consent"
Expand Down
2 changes: 1 addition & 1 deletion extension-manifest-v2/_locales/pt_BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@
},
"name": {
"description": "The title of this extension (Ghostery).",
"message": "Ghostery Tracker & Ad Blocker - Privacidade AdBlock"
"message": "Ghostery Tracker & Ad Blocker - AdBlock"
},
"never_consent": {
"message": "Never-Consent"
Expand Down
2 changes: 1 addition & 1 deletion extension-manifest-v2/_locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@
},
"name": {
"description": "The title of this extension (Ghostery).",
"message": "Ghostery Трекер & Ad Blocker - приватный блокировщик рекламы"
"message": "Ghostery блокировщик трекеров и рекламы"
},
"never_consent": {
"message": "Never-Consent"
Expand Down
18 changes: 18 additions & 0 deletions extension-manifest-v2/test/locales.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import fs from 'node:fs';
import path from 'node:path';

describe('locales', () => {
describe('extension name', () => {
const localesPath = path.join('.', '_locales');
const locales = fs.readdirSync(localesPath, { withFileTypes: true })
.filter(dirent => dirent.isDirectory())
.map(dirent => dirent.name);

for (const locale of locales) {
it(`extension name for locale "${locale}" is too long`, () => {
const translations = JSON.parse(fs.readFileSync(path.join(localesPath, locale, 'messages.json'), { encoding: 'utf8' }));
expect(translations.name.message.length).toBeLessThanOrEqual(45);
});
}
});
});

0 comments on commit 41dfb8d

Please sign in to comment.