Verified Commit f48bdfcd authored by Jess's avatar Jess
Browse files

Issue #3328741 by quietone, smustgrave, xjm, catch, alexpott, longwave: Add a...

Issue #3328741 by quietone, smustgrave, xjm, catch, alexpott, longwave: Add a dictionary for Drupal-specific words

(cherry picked from commit a10e0f8d)
parent 7029b697
Loading
Loading
Loading
Loading
Loading
+18 −3
Original line number Diff line number Diff line
@@ -44,9 +44,24 @@
      "\\Wi18n",
      "\\x{[0-9A-F]{4,5}}"
    ],
    "dictionaries": ["drupal","companies", "fonts", "html", "php", "softwareTerms"],
    "dictionaries": [
      "dictionary",
      "drupal",
      "companies",
      "fonts",
      "html",
      "php",
      "softwareTerms"
    ],
    "dictionaryDefinitions": [
      { "name": "drupal", "path": "./misc/cspell/dictionary.txt"}
      {
        "name": "drupal",
        "path": "./misc/cspell/drupal-dictionary.txt"
      },
      {
        "name": "dictionary",
        "path": "./misc/cspell/dictionary.txt"
      }
     ],
    "flagWords": [
      "e-mail",
+0 −13
Original line number Diff line number Diff line
@@ -71,7 +71,6 @@ bakeware
barbar
barchart
barqux
bartik
basefield
basepath
basestrings
@@ -82,7 +81,6 @@ bebebe
beforeclose
beforecreate
behat
behaviour
bergmann
berne
bgblue
@@ -224,7 +222,6 @@ datestamp
datetimeiso
datetimeplus
daycount
dblog
dbtng
dburl
dealerdirect
@@ -278,7 +275,6 @@ drivertext
dropbutton
dropbuttons
drudbal
drupalci
drupaldatetime
drupaldevdays
drupalelementstyle
@@ -295,8 +291,6 @@ drupalmedia
drupalmediaediting
drupalmediatoolbar
drupalorg
druplicon
drush
drépal
détruire
editables
@@ -482,8 +476,6 @@ kthxbai
kword
labely
lamoids
langcode
langcodes
languageswitcher
libc
libmysqlclient
@@ -639,8 +631,6 @@ nyans
nœud
oembed
officedocument
olivero
olivero's
omittable
onecol
oneplusfourgrid
@@ -841,7 +831,6 @@ shortlink
siema
silverlight
silvie
simpletest
singlebyte
sirbrillig
sisko
@@ -952,7 +941,6 @@ tbodies
tcomment
tempfile
templating
tempstore
tempuser
tercera
testajax
@@ -1047,7 +1035,6 @@ tzid
uberawesome
uids
ulwa
umami
unaliased
unallowed
unassigning
+12 −0
Original line number Diff line number Diff line
bartik
dblog
drupalci
druplicon
drush
langcode
langcodes
olivero
olivero's
simpletest
tempstore
umami
+2 −1
Original line number Diff line number Diff line
@@ -21,8 +21,9 @@
    "test:nightwatch": "node -r dotenv-safe/config ./node_modules/.bin/nightwatch --config ./tests/Drupal/Nightwatch/nightwatch.conf.js",
    "prettier": "prettier --write \"./**/*.js\"",
    "spellcheck": "cspell -c .cspell.json",
    "spellcheck:make-drupal-dict": "rm -f misc/cspell/dictionary.txt && touch misc/cspell/dictionary.txt && yarn -s spellcheck:core --unique --words-only | perl -Mopen=locale -pe '$_=lc$_' | LC_ALL=en_US.UTF-8 tr -d \\\\\\\\ | LC_ALL=C sort -u -o misc/cspell/dictionary.txt",
    "spellcheck:make-dict": "rm -f misc/cspell/dictionary.txt && touch misc/cspell/dictionary.txt && yarn -s spellcheck:core --unique --words-only | perl -Mopen=locale -pe '$_=lc$_' | LC_ALL=en_US.UTF-8 tr -d \\\\\\\\ | LC_ALL=C sort -u -o misc/cspell/dictionary.txt",
    "spellcheck:core": "cspell -c .cspell.json --root .. \"core/**/*\" \"composer/**/*\" \"composer.json\" \".gitlab-ci/*\" \".gitlab-ci.yml\"",
    "spellcheck:make-drupal-dict": "rm -f misc/cspell/drupal-dictionary.txt && touch misc/cspell/drupal-dictionary.txt && yarn -s spellcheck:core --unique --words-only | perl -Mopen=locale -pe '$_=lc$_' | LC_ALL=en_US.UTF-8 tr -d \\\\\\\\ | LC_ALL=C sort -u -o misc/cspell/drupal-dictionary.txt",
    "vendor-update": "node ./scripts/js/vendor-update.js",
    "watch:ckeditor5": "webpack --config ./modules/ckeditor5/webpack.config.js --watch",
    "build:ckeditor5": "webpack --config ./modules/ckeditor5/webpack.config.js",
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@
    CKEDITOR5_PLUGINS_CHANGED=1;
  fi;

  if [[ $FILE == "core/misc/cspell/dictionary.txt" || $FILE == "core/.cspell.json" ]]; then
  if [[ $FILE == "core/misc/cspell/dictionary.txt" || $FILE == "core/misc/cspell/drupal-dictionary.txt" ]]; then
    CSPELL_DICTIONARY_FILE_CHANGED=1;
  fi
done