rodauth-i18n 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdc05702895ae9cc9da2af1cf548c66292173c5298c4d9da9940f53fc35f5e11
4
- data.tar.gz: e0a64c6f87c136b5b0365eac77b2713262d6b2c24d0162d5e56bbdf91be3b854
3
+ metadata.gz: 67fa852edc03b87f43d72b657a5ba96805e99c0f3de2fcdeed8c78c31a6ae19f
4
+ data.tar.gz: 5dabb3e9bdd0e6cfa3d63e0e5560bb9348c0de36c20189fd4ba3e6c60408a9b1
5
5
  SHA512:
6
- metadata.gz: 3794e339e53e8a07c121ed9d613f0593e8faf4208e1b2be9a274efb9b69b73c2e1f54c9fe866805ba4816c5a7db72aadc2e53ad885f777ad6f360352e24da2aa
7
- data.tar.gz: 6d03ccf8119b87490fbf47664f15fd35d1a367c69b936aae1181e24d15bdfc7458250b5bf5013121d1b61ac3255ec98feedceba5e06f319c93042c905689515e
6
+ metadata.gz: 36e034a7ac17a21fff0cc6fe01f9ed686c1227300c084c6d9fdbb744a92da1d32f3d6fd659b05c81e28100700e6b1d3f000e2e2474585cac2e88cbb6e2601dad
7
+ data.tar.gz: d2892676423abf99734cf533d866284c254cb1aedd700967271fd4e5578302f085e5fe6b450c52c569bc011351ad2166de074121fdeee9b6d9dce25caafb8da3
data/README.md CHANGED
@@ -146,13 +146,16 @@ route do |r|
146
146
  all_locales = I18n.available_locales.map(&:to_s) - [I18n.default_locale.to_s]
147
147
  # routes requests starting with `(/:locale)/auth/*`
148
148
  r.on [*all_locales, true], "auth" do |locale|
149
- rails_request.params[:locale] = locale || I18n.default_locale # if using Rails
150
- r.rodauth
151
- break
149
+ rails_request.params[:locale] = locale # for controller callbacks (if using Rails)
150
+ r.rodauth # route Rodauth requests
151
+ break # let other (/:locale)/auth/* requests through
152
152
  end
153
153
  end
154
154
  ```
155
155
 
156
+ The static `/auth` path prefix is optional, it was just to show how it would be
157
+ incorporated.
158
+
156
159
  ## Bundling translations in your Rodauth plugin
157
160
 
158
161
  To make texts in your Rodauth plugin translatable, use the `translatable_method` macro. Macros for defining flash messages, button texts, and page titles internally call `translatable_method`, and are thus automatically translatable.
data/locales/fr.yml CHANGED
@@ -30,8 +30,8 @@ fr:
30
30
  contains_null_byte_message: contient un byte nul
31
31
  create_account_button: Créer un compte
32
32
  create_account_error_flash: Erreur lors de la création de votre compte
33
- create_account_link_text: Create a New Account
34
- create_account_notice_flash: Your account has been created
33
+ create_account_link_text: Créer un compte
34
+ create_account_notice_flash: Votre compte a été créé
35
35
  create_account_page_title: Créer un nouveau compte
36
36
  email_auth_email_recently_sent_error_flash: Un email vous a été envoyé avec un lien pour vous connecter
37
37
  email_auth_email_sent_notice_flash: Un email vous a été envoyé avec un lien pour accéder à votre compte
data/rodauth-i18n.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "rodauth-i18n"
5
- spec.version = "0.5.0"
5
+ spec.version = "0.5.1"
6
6
  spec.authors = ["Janko Marohnić"]
7
7
  spec.email = ["janko@hey.com"]
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rodauth-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-27 00:00:00.000000000 Z
11
+ date: 2022-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rodauth