cmdx-i18n 0.2.0 → 0.3.0
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.
- checksums.yaml +4 -4
- data/.cursor/rules/cursor-instructions.mdc +2 -1
- data/CHANGELOG.md +5 -0
- data/README.md +7 -5
- data/lib/cmdx/i18n/version.rb +1 -1
- data/lib/cmdx/i18n.rb +2 -7
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f4734775d41a6dd96b82b98b99b28f7d577bdae78a9ced6b4fa43da4d731c61
|
4
|
+
data.tar.gz: 20c4295ef038cd0552e88b1676207756c2dd24aa37e4e6981b7e2728534f2886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0b944ea2ff2d7b5416871df5175991efa6542854b3061d93d43b9a25d3ffbdfc1f110f1758c763564ba3198a02a30e51b1dd5c925f7734de17d7777eb4e3bfb
|
7
|
+
data.tar.gz: bbb8a50ad9361e141bf8f6e0a9a49b5d483f8d59e162a992301765b29e405e683f422d1f9891e818826462da576119013f8f9281a31003dbc12be2177494d958
|
@@ -12,11 +12,12 @@ Reference the guides outlined in https://guides.rubygems.org
|
|
12
12
|
## Project Context
|
13
13
|
CMDx::I18n is a collection of localized translations for the CMDx framework.
|
14
14
|
Reference the CMDx documentation in https://github.com/drexed/cmdx/blob/main/LLM.md
|
15
|
+
Reference the CMDx::I18n documentation in https://github.com/drexed/cmdx-i18n/blob/main/README.md
|
15
16
|
|
16
17
|
## Technology Stack
|
17
18
|
- Ruby 3.4+
|
18
19
|
- RSpec 3.1+
|
19
|
-
- CMDx 1.
|
20
|
+
- CMDx 1.5+
|
20
21
|
|
21
22
|
## Code Style and Structure
|
22
23
|
- Write concise, idiomatic Ruby code with accurate examples
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
# CMDx::I18n
|
12
12
|
|
13
|
-
Centralization of
|
13
|
+
Centralization of locales for [CMDx](https://github.com/drexed/cmdx).
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
@@ -30,9 +30,11 @@ Or install it yourself as:
|
|
30
30
|
|
31
31
|
## Configuration
|
32
32
|
|
33
|
-
If the `I18n` gem is installed, `cmdx-i18n` locales are automatically loaded and are managed through the `I18n.available_locales` option.
|
33
|
+
If the `I18n` gem is installed in a Rails app, `cmdx-i18n` locales are automatically loaded and are managed through the `I18n.available_locales` option.
|
34
34
|
|
35
|
-
|
35
|
+
## Local Version
|
36
|
+
|
37
|
+
Execute the following command to copy any locale to the Rails applications `config/locales` directory:
|
36
38
|
|
37
39
|
```bash
|
38
40
|
rails generate cmdx:i18n:locale [LOCALE]
|
@@ -138,7 +140,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
138
140
|
|
139
141
|
## Contributing
|
140
142
|
|
141
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
143
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/drexed/cmdx-i18n. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/drexed/cmdx-i18n/blob/master/CODE_OF_CONDUCT.md).
|
142
144
|
|
143
145
|
## License
|
144
146
|
|
@@ -146,4 +148,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
146
148
|
|
147
149
|
## Code of Conduct
|
148
150
|
|
149
|
-
Everyone interacting in the Cmdx::I18n project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
151
|
+
Everyone interacting in the Cmdx::I18n project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/drexed/cmdx-i18n/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/cmdx/i18n/version.rb
CHANGED
data/lib/cmdx/i18n.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "cmdx"
|
4
|
-
|
4
|
+
|
5
|
+
require_relative "i18n/version"
|
5
6
|
|
6
7
|
module CMDx
|
7
8
|
module I18n
|
@@ -15,12 +16,6 @@ module CMDx
|
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
18
|
-
# Set up Zeitwerk loader for the CMDx gem
|
19
|
-
loader = Zeitwerk::Loader.for_gem
|
20
|
-
loader.inflector.inflect("cmdx" => "CMDx")
|
21
|
-
loader.ignore("#{__dir__}/locales")
|
22
|
-
loader.setup
|
23
|
-
|
24
19
|
# Conditionally load Rails components if Rails is available
|
25
20
|
require_relative "generators/cmdx/i18n/copy_generator" if defined?(Rails::Generators)
|
26
21
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmdx-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
@@ -15,28 +15,14 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - ">="
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 1.5.
|
18
|
+
version: 1.5.0
|
19
19
|
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - ">="
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: 1.5.
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: zeitwerk
|
28
|
-
requirement: !ruby/object:Gem::Requirement
|
29
|
-
requirements:
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
33
|
-
type: :runtime
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0'
|
25
|
+
version: 1.5.0
|
40
26
|
- !ruby/object:Gem::Dependency
|
41
27
|
name: bundler
|
42
28
|
requirement: !ruby/object:Gem::Requirement
|