habluhablu 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +45 -29
- data/Gemfile.lock +1 -1
- data/README.md +50 -49
- data/lib/habluhablu/version.rb +1 -1
- data/lib/languages/languages.rb +45 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f072b8f411337c5c7fce24d5b46306ebfbc42f9c11e370020e40c71ccf54a31
|
4
|
+
data.tar.gz: f7a890ecc293abbee86ecdd618df96b56525beca7eff5dda863af9c670f7156d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02abfd0667c1f0068b2d012a32a2fe473119c86d130f81b0f7014f6cd634b2e771f1d8435263146ffc82140d8713fc7e1b9f0ede5bcad49b6c5ab58e4f658d4f
|
7
|
+
data.tar.gz: 010c6c6a432c09e38acca8d36b74553fe3544ef91f48ef4f273ff20513d844ac41f54054dffc1b8d5b35023f17301f8c27535a688d165dec726a698d70d6ea12
|
data/.rubocop.yml
CHANGED
@@ -1,29 +1,45 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: 2.7
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
Style/
|
28
|
-
Exclude:
|
29
|
-
- 'lib
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.7
|
3
|
+
SuggestExtensions: false
|
4
|
+
NewCops: enable
|
5
|
+
Exclude:
|
6
|
+
- 'spec/**/*'
|
7
|
+
|
8
|
+
Layout/EndOfLine:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Style/StringLiterals:
|
12
|
+
Enabled: true
|
13
|
+
EnforcedStyle: double_quotes
|
14
|
+
|
15
|
+
Style/StringLiteralsInInterpolation:
|
16
|
+
Enabled: true
|
17
|
+
EnforcedStyle: double_quotes
|
18
|
+
|
19
|
+
Layout/LineLength:
|
20
|
+
Max: 120
|
21
|
+
|
22
|
+
Metrics/MethodLength:
|
23
|
+
Exclude:
|
24
|
+
- 'lib/languages/languages.rb'
|
25
|
+
Max: 20
|
26
|
+
|
27
|
+
Style/IfUnlessModifier:
|
28
|
+
Exclude:
|
29
|
+
- 'lib/**/*'
|
30
|
+
|
31
|
+
Style/RaiseArgs:
|
32
|
+
Exclude:
|
33
|
+
- 'lib/habluhablu.rb'
|
34
|
+
|
35
|
+
Style/IfWithBooleanLiteralBranches:
|
36
|
+
Exclude:
|
37
|
+
- 'lib/languages/languages.rb'
|
38
|
+
|
39
|
+
Lint/ScriptPermission:
|
40
|
+
Exclude:
|
41
|
+
- 'bin/console'
|
42
|
+
|
43
|
+
Metrics/ClassLength:
|
44
|
+
Exclude:
|
45
|
+
- 'lib/languages/languages.rb'
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,49 +1,50 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
HabluHablu
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
## Supported languages
|
8
|
-
|
9
|
-
- English
|
10
|
-
- Polish
|
11
|
-
-
|
12
|
-
-
|
13
|
-
-
|
14
|
-
-
|
15
|
-
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/habluhablu.svg)](https://badge.fury.io/rb/habluhablu)
|
2
|
+
|
3
|
+
# HabluHablu
|
4
|
+
|
5
|
+
HabluHablu is a CLI written in Ruby, which allows you to generate language file with translations of the most useful phrases.
|
6
|
+
|
7
|
+
## Supported languages
|
8
|
+
|
9
|
+
- English
|
10
|
+
- Polish
|
11
|
+
- Arabic
|
12
|
+
- Spanish
|
13
|
+
- Hebrew
|
14
|
+
- If you want to help me out and add your language, don't hesitate!
|
15
|
+
- In progress...
|
16
|
+
|
17
|
+
### Installation
|
18
|
+
|
19
|
+
Add this line to your application's Gemfile:
|
20
|
+
|
21
|
+
Install [I18n gem](https://github.com/ruby-i18n/i18n)
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
gem 'habluhablu'
|
25
|
+
```
|
26
|
+
|
27
|
+
And then execute:
|
28
|
+
|
29
|
+
$ bundle install
|
30
|
+
|
31
|
+
Or install it yourself as:
|
32
|
+
|
33
|
+
$ gem install habluhablu
|
34
|
+
|
35
|
+
### Usage
|
36
|
+
|
37
|
+
Generate file for a specific language using `habluhablu -l <symbol>` command.
|
38
|
+
[List of symbols](https://www.w3.org/International/O-charset-lang.html)
|
39
|
+
|
40
|
+
`habluhablu --help`
|
41
|
+
|
42
|
+
There is also an option to add countries flag using bootstrap (for more informations go to languages/Countries_Flags.md).
|
43
|
+
|
44
|
+
### Contributing
|
45
|
+
|
46
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/patrickgramatowski/habluhablu_gem.
|
47
|
+
|
48
|
+
### License
|
49
|
+
|
50
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/habluhablu/version.rb
CHANGED
data/lib/languages/languages.rb
CHANGED
@@ -82,6 +82,51 @@ class Languages
|
|
82
82
|
"forgot_password" => "שכחת את הסיסמא?",
|
83
83
|
"do_not_have_account" => "אין לך חשבון?"
|
84
84
|
}
|
85
|
+
},
|
86
|
+
fr: {
|
87
|
+
"fr" => {
|
88
|
+
"welcome" => "Bienvenu", # bienvenue female
|
89
|
+
"registration" => "Créer un compte",
|
90
|
+
"log_in" => "Connexion",
|
91
|
+
"log_in_with" => "Se connecter avec", # Example: 'with Facebook'
|
92
|
+
"log_out" => "Déconnexion",
|
93
|
+
"email_address" => "Adresse e-mail",
|
94
|
+
"username" => "Nom d'utilisateur",
|
95
|
+
"password" => "Mot de passe",
|
96
|
+
"remember_me" => "Mémoriser",
|
97
|
+
"forgot_password" => "Mot de passe oublié",
|
98
|
+
"do_not_have_account" => "Vous n'avez pas de compte?"
|
99
|
+
}
|
100
|
+
},
|
101
|
+
it: {
|
102
|
+
"it" => {
|
103
|
+
"welcome" => "Benvenuto", # benvenuta female
|
104
|
+
"registration" => "Iscriviti",
|
105
|
+
"log_in" => "Accedi",
|
106
|
+
"log_in_with" => "Accedi con", # Example: 'with Facebook'
|
107
|
+
"log_out" => "Esci",
|
108
|
+
"email_address" => "Indirizzo e-mail",
|
109
|
+
"username" => "Nome utente",
|
110
|
+
"password" => "Password",
|
111
|
+
"remember_me" => "Ricordami",
|
112
|
+
"forgot_password" => "Ho dimenticato la password",
|
113
|
+
"do_not_have_account" => "Non possiedi un account?"
|
114
|
+
}
|
115
|
+
},
|
116
|
+
de: {
|
117
|
+
"de" => {
|
118
|
+
"welcome" => "Willkommen",
|
119
|
+
"registration" => "Registrieren",
|
120
|
+
"log_in" => "Anmelden",
|
121
|
+
"log_in_with" => "Anmeldung mit", # Example: 'with Facebook'
|
122
|
+
"log_out" => "Abmelden",
|
123
|
+
"email_address" => "E-Mail-Adresse",
|
124
|
+
"username" => "Nutzername",
|
125
|
+
"password" => "Passwort",
|
126
|
+
"remember_me" => "Merken",
|
127
|
+
"forgot_password" => "Passwort vergessen?",
|
128
|
+
"do_not_have_account" => "Hast du noch kein FACEBOOK-Konto?" # Change facebook!
|
129
|
+
}
|
85
130
|
}
|
86
131
|
}
|
87
132
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: habluhablu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Gramatowski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The gem allows you to generate language file with translations of the
|
14
14
|
most useful phrases.
|