words-global 1.0.4 → 1.0.5

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.
package/README.md CHANGED
@@ -4,8 +4,6 @@ Providing access to alphabets from different languages and dialects. This packag
4
4
 
5
5
  ![Words Global icon](./icon.png)
6
6
 
7
- The first approach is simpler and keeps the markdown syntax.
8
-
9
7
  ## Usage
10
8
 
11
9
  ```bash
@@ -28,6 +26,7 @@ console.log(alphabet.language);
28
26
  - [**Russian**](/languages/russian.js) - [source](https://en.wikipedia.org/wiki/Russian_alphabet)
29
27
  - [**Arabic**](/languages/russian.js) - [source](https://www.arabichomeschool.com/post/arabic-alphabet-with-words-alif-to-ya-vocabulary-builder-for-kids)
30
28
  - [French](/languages/french.js)
29
+ - [Shona](/languages/shona.js)
31
30
 
32
31
  ## Contribution Guide
33
32
 
package/example.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { Alphabet } from "./index.js";
2
2
 
3
- const alphabet = new Alphabet("arabic");
4
- console.log(alphabet.getLetters());
3
+ const alphabet = new Alphabet("shona");
4
+ console.log(alphabet.getLetters().length);
package/index.js CHANGED
@@ -2,6 +2,7 @@ import { arabicAlphabet } from "./languages/arabic.js";
2
2
  import { englishAlphabet } from "./languages/english.js";
3
3
  import { frenchLetters } from "./languages/french.js";
4
4
  import { russianAlphabet } from "./languages/russian.js";
5
+ import { shonaAlphabet } from "./languages/shona.js";
5
6
 
6
7
  /**
7
8
  * The main class export
@@ -27,6 +28,8 @@ export class Alphabet {
27
28
  return arabicAlphabet;
28
29
  case "french":
29
30
  return frenchLetters;
31
+ case "shona":
32
+ return shonaAlphabet;
30
33
  default:
31
34
  return "Language not found";
32
35
  }
@@ -0,0 +1,24 @@
1
+ export const shonaAlphabet = [
2
+ "a",
3
+ "b",
4
+ "d",
5
+ "e",
6
+ "f",
7
+ "g",
8
+ "h",
9
+ "i",
10
+ "j",
11
+ "k",
12
+ "m",
13
+ "n",
14
+ "o",
15
+ "p",
16
+ "r",
17
+ "s",
18
+ "t",
19
+ "u",
20
+ "v",
21
+ "w",
22
+ "y",
23
+ "z",
24
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "words-global",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Providing access to alphabets from different languages and dialects",
5
5
  "keywords": [
6
6
  "internationalization",