Spellcheck: add en_GB dictionary

Signed-off-by: Santiago Gil <santix91@gmail.com>
This commit is contained in:
Santiago Gil 2020-08-13 22:55:34 +01:00
parent 24de5a54c9
commit 1585abdb84
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",
"integrity": "sha512-+eqpz5j8WONSzxmc4avCN4XX/6q5+J6JfWz2AaluZIOVNgXPxUjXBhKS73+nRhM3nE1pGeRMqkyZevTQWgYTTw==",
"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": {
"version": "3.5.0",

View File

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

View File

@ -18,6 +18,18 @@ export const supportLanguages = [
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',
value: 'de',

View File

@ -181,6 +181,11 @@ module.exports = {
from: '*',
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'),
from: 'dist',