Skip to content

Commit b40366c

Browse files
authored
Remove localization in this project (#5520)
1 parent 2bf19a8 commit b40366c

File tree

73 files changed

+36
-69002
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+36
-69002
lines changed

.circleci/config.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,6 @@ jobs:
145145
- run: npm run webext-test-functional
146146
- run: npm run smoke-test-eslint-version-conflicts
147147

148-
lint-locales:
149-
working_directory: ~/addons-linter
150-
docker:
151-
- image: cimg/python:3.11.3
152-
steps:
153-
- checkout
154-
- run:
155-
name: lint locale files
156-
command: |
157-
pip install dennis
158-
dennis-cmd lint --errorsonly locale/
159-
160148
release-tag:
161149
<<: *defaults
162150
steps:
@@ -180,7 +168,6 @@ workflows:
180168
only: /.*/
181169
- test-next
182170
- test-alternate
183-
- lint-locales
184171
- release-tag:
185172
requires:
186173
- test

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,6 @@ We use [pino](https://github.com/pinojs/pino) for logging:
189189

190190
We use [Prettier](https://prettier.io/) to automatically format our JavaScript code and stop all the on-going debates over styles. As a developer, you have to run it (with `npm run prettier-dev`) before submitting a Pull Request.
191191

192-
### L10n extraction
193-
194-
The localization process is very similar to [how we do it for addons-frontend](https://addons-frontend.readthedocs.io/en/latest/i18n/#updating-locales): locales are always updated on the `master` branch, any PR that changes or introduces new localized strings should be merged on `master` first.
195-
196-
In order to update the locales (when new localized strings are added to the codebase), run the following script from the `master` branch. This script automates _all_ the steps described in the addons-frontend docs, without any confirmation step.
197-
198-
```
199-
./scripts/run-l10n-extraction
200-
```
201-
202192
## Architecture
203193

204194
In a nutshell the way the linter works is to take an add-on package, extract the metadata from the xpi (zip) format and then process the files it finds through various content scanners.

bin/addons-linter

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#!/usr/bin/env node
22
/* eslint-disable global-require */
3-
const path = require('path');
4-
5-
const absoluteAppRoot = path.resolve(path.join(__dirname, '..'));
6-
global.localesRoot = path.join(absoluteAppRoot, 'dist', 'locale');
73
global.nodeRequire = require;
84

95
(async () => {

0 commit comments

Comments
 (0)