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 +1 -2
- package/example.js +2 -2
- package/index.js +3 -0
- package/languages/shona.js +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,6 @@ Providing access to alphabets from different languages and dialects. This packag
|
|
|
4
4
|
|
|
5
5
|

|
|
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
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
|
}
|