From 08c71dd44668fc68788fcac8f651268b15dbf0e7 Mon Sep 17 00:00:00 2001
From: Eoussama
Date: Sun, 9 Dec 2018 23:04:01 +0000
Subject: [PATCH] Name changed.
---
README.md | 10 +++++-----
bower.json | 4 ++--
docs/assets/css/main.css | 6 +++---
docs/assets/js/lib/translate.min.js | 2 +-
docs/assets/js/main.js | 10 +++++-----
docs/index.html | 8 ++++----
package-lock.json | 4 ++--
package.json | 10 +++++-----
src/translate.js | 12 ++++++------
9 files changed, 33 insertions(+), 33 deletions(-)
diff --git a/README.md b/README.md
index e0b739b..2e83638 100644
--- a/README.md
+++ b/README.md
@@ -1,23 +1,23 @@
-
translateJS
+ translatorjs
## What's this?
-translateJS is a lightweight very simple-to-use Javascript library that facilitates the process of translating web pages. For more about how this works, read along.
+translatorjs is a lightweight very simple-to-use Javascript library that facilitates the process of translating web pages. For more about how this works, read along.
## How does this work?
-translateJS doesn't depend on any external APIs or resources to work, in fact, there is a crucial part of this magic that requires a little bit of work, but not the kind of work that made you look up a library for this need.
+translatorjs doesn't depend on any external APIs or resources to work, in fact, there is a crucial part of this magic that requires a little bit of work, but not the kind of work that made you look up a library for this need.
You should create your own dictionary, containing the words and/or sentences you want to translate with their respective translations, and then target the whole web page or just a specific section.
Not everything gets translated, only the elements that have the class `trnsjs` toggeled.
## Syntax
-Something that scares people away from using most of the other libraries is their unnecessary complexity, after all, we use libraries to avoid excessive pain. translateJS operates on one and only function that takes three parameters `translate(element, dictionary, language)`.
+Something that scares people away from using most of the other libraries is their unnecessary complexity, after all, we use libraries to avoid excessive pain. translatorjs operates on one and only function that takes three parameters `translate(element, dictionary, language)`.
| element | dictionary | language |
|----------|:-------------:|------|
@@ -26,7 +26,7 @@ Something that scares people away from using most of the other libraries is thei
## Usage
-In order to start using translateJS, you should first include it on your HTML file;
+In order to start using translatorjs, you should first include it on your HTML file;
```html
```
diff --git a/bower.json b/bower.json
index 4e764fc..a45f345 100644
--- a/bower.json
+++ b/bower.json
@@ -1,5 +1,5 @@
{
- "name": "translatejs",
+ "name": "translatorjs",
"description": "A simple javascript library for translating web content.",
"main": "",
"authors": [
@@ -12,7 +12,7 @@
"text-translation",
"node-package"
],
- "homepage": "https://github.com/EOussama/translatejs",
+ "homepage": "https://github.com/EOussama/translatorjs",
"ignore": [
"**/.*",
"node_modules",
diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css
index 0a85bfa..78c4785 100644
--- a/docs/assets/css/main.css
+++ b/docs/assets/css/main.css
@@ -1,10 +1,10 @@
/**
*
- * @name: translatejs
- * @version: 2.0.0
+ * @name: translatorjs
+ * @version: 2.0.1
* @author: EOussama
* @license MIT
- * @source: https://github.com/EOussama/translatejs
+ * @source: https://github.com/EOussama/translatorjs
*
* A simple javascript library for translating web content.
*
diff --git a/docs/assets/js/lib/translate.min.js b/docs/assets/js/lib/translate.min.js
index ade32fa..1f4cada 100644
--- a/docs/assets/js/lib/translate.min.js
+++ b/docs/assets/js/lib/translate.min.js
@@ -1 +1 @@
-"use strict";function _classCallCheck(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,n){for(var e=0;e {
};
// The translator.
- const Translator = new Translate(dictionary);
+ const translator = new Translator(dictionary);
// Translating.
- Translator.translate('br');
+ translator.translate('br');
});
diff --git a/docs/index.html b/docs/index.html
index 32fedeb..f018975 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1,10 +1,10 @@