fixnow 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,45 @@
1
+ // cSpell Settings
2
+ {
3
+ "id": "ru-ru",
4
+ "name": "Russian Dictionary (Combined)",
5
+ "description": "Russian Dictionary (Combined)",
6
+ "version": "0.2",
7
+ "readonly": true,
8
+ // List of dictionary files to add to the global list of dictionaries
9
+ "dictionaryDefinitions": [
10
+ {
11
+ "name": "ru-ru",
12
+ "path": "./ru_ru.trie.gz",
13
+ "description": "Russian Dictionary (Combined)",
14
+ "ignoreForbiddenWords": true
15
+ }
16
+ ],
17
+ // Dictionaries to always be used.
18
+ // Generally left empty
19
+ "dictionaries": [],
20
+ // Language Rules to apply to matching files.
21
+ // Files are matched on `languageId` and `locale`
22
+ "languageSettings": [
23
+ {
24
+ // VSCode languageId. i.e. typescript, java, go, cpp, javascript, markdown, latex
25
+ // * will match against any file type.
26
+ "languageId": "*",
27
+ // Language locale. i.e. en-US, de-AT, or ru. * will match all locals.
28
+ // Multiple locals can be specified like: "en, en-US" to match both English and English US.
29
+ "locale": "ru,ru-ru",
30
+ // By default the whole text of a file is included for spell checking
31
+ // Adding patterns to the "includeRegExpList" to only include matching patterns
32
+ "includeRegExpList": [],
33
+ // To exclude patterns, add them to "ignoreRegExpList"
34
+ "ignoreRegExpList": [],
35
+ // regex patterns than can be used with ignoreRegExpList or includeRegExpList
36
+ // Example: "pattern": [{ "name": "mdash", "pattern": "—" }]
37
+ // This could be included in "ignoreRegExpList": ["mdash"]
38
+ "patterns": [],
39
+ // List of dictionaries to enable by name in `dictionaryDefinitions`
40
+ "dictionaries": ["ru-ru"],
41
+ // Dictionary definitions can also be supplied here. They are only used iff "languageId" and "locale" match.
42
+ "dictionaryDefinitions": []
43
+ }
44
+ ]
45
+ }
Binary file
package/dist/index.cjs CHANGED
@@ -5886,12 +5886,15 @@ var defaultAdjustments = [
5886
5886
  ];
5887
5887
 
5888
5888
  // src/languages.ts
5889
- var SUPPORTED_LANGUAGES = ["ar", "de", "es", "fr", "vi"];
5889
+ var SUPPORTED_LANGUAGES = ["ar", "de", "en", "es", "fr", "pt", "ru", "vi"];
5890
5890
  var LANGUAGES = {
5891
5891
  ar: { code: "ar", name: "Arabic", trie: "ar.trie.gz", license: "LGPL-3.0-only" },
5892
5892
  de: { code: "de", name: "German", trie: "de.trie.gz", license: "LGPL-3.0-only", compound: true },
5893
+ en: { code: "en", name: "English", trie: "en.trie.gz", license: "MIT" },
5893
5894
  es: { code: "es", name: "Spanish", trie: "es.trie.gz", license: "LGPL-3.0-only" },
5894
5895
  fr: { code: "fr", name: "French", trie: "fr.trie.gz", license: "MIT" },
5896
+ pt: { code: "pt", name: "Portuguese", trie: "pt.trie.gz", license: "GPL-3.0-or-later" },
5897
+ ru: { code: "ru", name: "Russian", trie: "ru.trie.gz", license: "GPL-3.0-or-later" },
5895
5898
  vi: { code: "vi", name: "Vietnamese", trie: "vi.trie.gz", license: "MIT" }
5896
5899
  };
5897
5900
  function isSupportedLanguage(code) {
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- declare const SUPPORTED_LANGUAGES: readonly ["ar", "de", "es", "fr", "vi"];
1
+ declare const SUPPORTED_LANGUAGES: readonly ["ar", "de", "en", "es", "fr", "pt", "ru", "vi"];
2
2
  type LanguageCode = (typeof SUPPORTED_LANGUAGES)[number];
3
3
  interface LanguageInfo {
4
4
  /** ISO 639-1 code used everywhere in the public API. */
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare const SUPPORTED_LANGUAGES: readonly ["ar", "de", "es", "fr", "vi"];
1
+ declare const SUPPORTED_LANGUAGES: readonly ["ar", "de", "en", "es", "fr", "pt", "ru", "vi"];
2
2
  type LanguageCode = (typeof SUPPORTED_LANGUAGES)[number];
3
3
  interface LanguageInfo {
4
4
  /** ISO 639-1 code used everywhere in the public API. */
package/dist/index.js CHANGED
@@ -5847,12 +5847,15 @@ var defaultAdjustments = [
5847
5847
  ];
5848
5848
 
5849
5849
  // src/languages.ts
5850
- var SUPPORTED_LANGUAGES = ["ar", "de", "es", "fr", "vi"];
5850
+ var SUPPORTED_LANGUAGES = ["ar", "de", "en", "es", "fr", "pt", "ru", "vi"];
5851
5851
  var LANGUAGES = {
5852
5852
  ar: { code: "ar", name: "Arabic", trie: "ar.trie.gz", license: "LGPL-3.0-only" },
5853
5853
  de: { code: "de", name: "German", trie: "de.trie.gz", license: "LGPL-3.0-only", compound: true },
5854
+ en: { code: "en", name: "English", trie: "en.trie.gz", license: "MIT" },
5854
5855
  es: { code: "es", name: "Spanish", trie: "es.trie.gz", license: "LGPL-3.0-only" },
5855
5856
  fr: { code: "fr", name: "French", trie: "fr.trie.gz", license: "MIT" },
5857
+ pt: { code: "pt", name: "Portuguese", trie: "pt.trie.gz", license: "GPL-3.0-or-later" },
5858
+ ru: { code: "ru", name: "Russian", trie: "ru.trie.gz", license: "GPL-3.0-or-later" },
5856
5859
  vi: { code: "vi", name: "Vietnamese", trie: "vi.trie.gz", license: "MIT" }
5857
5860
  };
5858
5861
  function isSupportedLanguage(code) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fixnow",
3
- "version": "1.0.0",
4
- "description": "Tiny multilingual spell checker with suggestions. Arabic, German, Spanish, French and Vietnamese dictionaries bundled — one install, zero runtime dependencies.",
3
+ "version": "1.0.1",
4
+ "description": "Tiny multilingual spell checker with suggestions. Arabic, German, English, Spanish, French, Portuguese, Russian and Vietnamese dictionaries bundled — one install, zero runtime dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "scripts": {
27
27
  "build": "tsup",
28
28
  "clean": "rm -rf dist",
29
- "prepublishOnly": "npm run build",
29
+ "prepublishOnly": "bun run build",
30
30
  "test": "node test/smoke.mjs"
31
31
  },
32
32
  "keywords": [
@@ -41,8 +41,11 @@
41
41
  "i18n",
42
42
  "arabic",
43
43
  "german",
44
+ "english",
44
45
  "spanish",
45
46
  "french",
47
+ "portuguese",
48
+ "russian",
46
49
  "vietnamese"
47
50
  ],
48
51
  "author": "Gohit X (bastndev)",