Merge pull request #1574 from santigl/spellcheck-en-gb-dict

Spellcheck: add en_GB dictionary
This commit is contained in:
Yukai Huang 2020-09-10 16:14:04 +08:00 committed by GitHub
commit cebd5e7da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 0 deletions

6
package-lock.json generated
View File

@ -5403,6 +5403,12 @@
"resolved": "https://registry.npmjs.org/dictionary-de-ch/-/dictionary-de-ch-2.0.3.tgz", "resolved": "https://registry.npmjs.org/dictionary-de-ch/-/dictionary-de-ch-2.0.3.tgz",
"integrity": "sha512-+eqpz5j8WONSzxmc4avCN4XX/6q5+J6JfWz2AaluZIOVNgXPxUjXBhKS73+nRhM3nE1pGeRMqkyZevTQWgYTTw==", "integrity": "sha512-+eqpz5j8WONSzxmc4avCN4XX/6q5+J6JfWz2AaluZIOVNgXPxUjXBhKS73+nRhM3nE1pGeRMqkyZevTQWgYTTw==",
"dev": true "dev": true
},
"dictionary-en-gb": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/dictionary-en-gb/-/dictionary-en-gb-2.2.2.tgz",
"integrity": "sha512-36Pz/2BGmJfXtAo5+IGOi+U6gwtxFsFXFJMOX0FC1z2YeLd1IXkxsfAhieC06OrdGie3SqCZmUOYeYgct5Hzzw==",
"dev": true
}, },
"diff": { "diff": {
"version": "3.5.0", "version": "3.5.0",

View File

@ -121,6 +121,7 @@
"dictionary-de": "^2.0.3", "dictionary-de": "^2.0.3",
"dictionary-de-at": "^2.0.3", "dictionary-de-at": "^2.0.3",
"dictionary-de-ch": "^2.0.3", "dictionary-de-ch": "^2.0.3",
"dictionary-en-gb": "^2.2.2",
"doctoc": "~1.4.0", "doctoc": "~1.4.0",
"ejs-loader": "~0.3.1", "ejs-loader": "~0.3.1",
"exports-loader": "~0.7.0", "exports-loader": "~0.7.0",

View File

@ -18,6 +18,18 @@ export const supportLanguages = [
cdnUrl: `${serverurl}/vendor/codemirror-spell-checker/en_US.dic` cdnUrl: `${serverurl}/vendor/codemirror-spell-checker/en_US.dic`
} }
}, },
{
name: 'English (United Kingdom)',
value: 'en_GB',
aff: {
url: `${serverurl}/build/dictionary-en-gb/index.aff`,
cdnUrl: 'https://cdn.jsdelivr.net/npm/dictionary-en-gb@2.2.2/index.aff'
},
dic: {
url: `${serverurl}/build/dictionary-en-gb/index.dic`,
cdnUrl: 'https://cdn.jsdelivr.net/npm/dictionary-en-gb@2.2.2/index.dic'
}
},
{ {
name: 'German', name: 'German',
value: 'de', value: 'de',

View File

@ -181,6 +181,11 @@ module.exports = {
from: '*', from: '*',
to: 'dictionary-de-ch/' to: 'dictionary-de-ch/'
}, },
{
context: path.join(__dirname, 'node_modules/dictionary-en-gb'),
from: '*',
to: 'dictionary-en-gb/'
},
{ {
context: path.join(__dirname, 'node_modules/leaflet'), context: path.join(__dirname, 'node_modules/leaflet'),
from: 'dist', from: 'dist',