From 65fd0c2415d3f56b43c7b55558b86ce5fd70bc94 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 7 Aug 2024 07:17:00 -0400 Subject: [PATCH] [CI][i18n] Spell check content/pt, and enable other dicts (#4982) --- .cspell.yml | 26 +++++++------------------- .github/workflows/check-spelling.yml | 2 +- package.json | 5 +++-- 3 files changed, 11 insertions(+), 22 deletions(-) diff --git a/.cspell.yml b/.cspell.yml index 532ff7b94363..63d907d68a2a 100644 --- a/.cspell.yml +++ b/.cspell.yml @@ -2,10 +2,15 @@ # For settings, see # https://www.streetsidesoftware.com/vscode-spell-checker/docs/configuration/ version: '0.2' +language: en-US +import: + - '@cspell/dict-pt-br/cspell-ext.json' caseSensitive: true ignorePaths: - '*.svg' - - 'vendors.yaml' + - vendors.yaml + - content/ja + - content/zh # words here are only listed for their spelling, if there is a certain way # to write a word (e.g. OpenTelemetry vs Opentelemetry or cloud native vs # cloud-native), edit the text-lint rules in .textlintrc.yml @@ -22,12 +27,12 @@ languageSettings: - languageId: markdown ignoreRegExpList: - CodeBlock +dictionaries: [pt-br, companies, cpp, dotnet, golang, node, softwareTerms] words: - accountingservice - actix - adservice - alibaba - - Alloc - Alolita - APAC - appdynamics @@ -35,9 +40,7 @@ words: - appenders - aspecto - autoconfiguration - - autoconfigure - autoinstrumentation - - autoload - autoloaded - autoloader - autoloading @@ -52,7 +55,6 @@ words: - currencyservice - daemonset - datadog - - declarators - discoverability - dotnet - Dyla @@ -67,7 +69,6 @@ words: - github - gitpod - grafana - - gzipped - Hausenblas - hugo - initializers @@ -89,14 +90,11 @@ words: - laravel - lifecycles - lightstep - - linux - Loffay - Mancuso - microservices - mongodb - - mysql - ndjson - - netlify - Neumann - nginx - ocaml @@ -113,20 +111,16 @@ words: - otelcol - otep - otlp - - outro - - overridable - packagist - pageinfo - Paixão - parentbased - Pavol - paymentservice - - pluggable - postgresql - Pranay - Prateek - prepper - - Println - productcatalogservice - prometheus - proto @@ -139,22 +133,16 @@ words: - redis - relref - Rexed - - roadmap - - runtimes - Rynn - semconv - servlet - Severin - Sharma - shippingservice - - shortcode - - snmp - Socha - - sqlite - Stalnaker - stdoutmetric - Strimzi - - subdir - symfony - tabpane - textlint diff --git a/.github/workflows/check-spelling.yml b/.github/workflows/check-spelling.yml index 41ceef742155..51ecbae34101 100644 --- a/.github/workflows/check-spelling.yml +++ b/.github/workflows/check-spelling.yml @@ -14,7 +14,7 @@ jobs: with: # Files should be consistent with check:spelling files files: | - content/en + content data layouts/**/*.md config: .cspell.yml diff --git a/package.json b/package.json index 52b7e46e5c30..adbe3e6248ec 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "check:links": "npm run _check:links", "check:markdown": "scripts/check-markdown-wrapper.sh", "check:registry": "npm run _check:registry -- ", - "check:spelling": "npx cspell --no-progress -c .cspell.yml content/en data 'layouts/**/*.md'", + "check:spelling": "npx cspell --no-progress -c .cspell.yml content data 'layouts/**/*.md'", "check:text": "npm run _check:text -- ", "check": "npm run seq -- $(npm run -s _list:check:*)", "clean": "make clean", @@ -109,14 +109,15 @@ "update:submodule": "set -x && git submodule update --remote ${DEPTH:- --depth 1}" }, "devDependencies": { + "@cspell/dict-pt-br": "^2.3.0", "ajv": "^8.17.1", "ajv-errors": "^3.0.0", "ajv-formats": "^3.0.1", "autoprefixer": "^10.4.20", "cspell": "^8.13.1", "gulp": "^5.0.0", - "js-yaml": "^4.1.0", "hugo-extended": "0.131.0", + "js-yaml": "^4.1.0", "markdown-link-check": "^3.12.2", "markdownlint": "^0.34.0", "postcss-cli": "^11.0.0",