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 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
+ ![Words Global icon](./icon.png)
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
  }
@@ -0,0 +1,15 @@
1
+ export const frenchLetters = [
2
+ "é",
3
+ "à",
4
+ "è",
5
+ "ù",
6
+ "â",
7
+ "ê",
8
+ "î",
9
+ "ô",
10
+ "û",
11
+ "ë",
12
+ "ï",
13
+ "ü",
14
+ "ç",
15
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "words-global",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Providing access to alphabets from different languages and dialects",
5
5
  "keywords": [
6
6
  "internationalization",