words-global 1.0.1 → 1.0.2
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 +6 -1
- package/icon.png +0 -0
- package/index.js +3 -0
- package/languages/french.js +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Providing access to alphabets from different languages and dialects. This package aims to solve the problem of lacking access to alphabetic characters for various use cases.
|
|
4
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
The first approach is simpler and keeps the markdown syntax.
|
|
8
|
+
|
|
5
9
|
## Usage
|
|
6
10
|
|
|
7
11
|
```JavaScript
|
|
@@ -17,6 +21,7 @@ console.log(alphabet.language);
|
|
|
17
21
|
- [**English**](/languages/english.js)
|
|
18
22
|
- [**Russian**](/languages/russian.js) - [source](https://en.wikipedia.org/wiki/Russian_alphabet)
|
|
19
23
|
- [**Arabic**](/languages/russian.js) - [source](https://www.arabichomeschool.com/post/arabic-alphabet-with-words-alif-to-ya-vocabulary-builder-for-kids)
|
|
24
|
+
- [French](/languages/french.js)
|
|
20
25
|
|
|
21
26
|
## Contribution Guide
|
|
22
27
|
|
|
@@ -30,4 +35,4 @@ console.log(alphabet.language);
|
|
|
30
35
|
## Rules
|
|
31
36
|
|
|
32
37
|
1. Only use double-quotes.
|
|
33
|
-
2. Always use semi-colons
|
|
38
|
+
2. Always use semi-colons.
|
package/icon.png
ADDED
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { arabicAlphabet } from "./languages/arabic.js";
|
|
2
2
|
import { englishAlphabet } from "./languages/english.js";
|
|
3
|
+
import { frenchLetters } from "./languages/french.js";
|
|
3
4
|
import { russianAlphabet } from "./languages/russian.js";
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -19,6 +20,8 @@ export class Alphabet {
|
|
|
19
20
|
return russianAlphabet;
|
|
20
21
|
case "arabic":
|
|
21
22
|
return arabicAlphabet;
|
|
23
|
+
case "french":
|
|
24
|
+
return frenchLetters;
|
|
22
25
|
default:
|
|
23
26
|
return "Language not found";
|
|
24
27
|
}
|