cmdx 1.6.1 → 1.7.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 -2
- data/CHANGELOG.md +16 -1
- data/LLM.md +168 -2
- data/docs/attributes/coercions.md +2 -0
- data/docs/attributes/validations.md +2 -0
- data/docs/callbacks.md +2 -0
- data/docs/getting_started.md +8 -0
- data/docs/internationalization.md +106 -2
- data/docs/middlewares.md +2 -0
- data/docs/workflows.md +48 -0
- data/lib/cmdx/pipeline.rb +43 -11
- data/lib/cmdx/railtie.rb +2 -2
- data/lib/cmdx/version.rb +1 -1
- data/lib/cmdx.rb +2 -0
- data/lib/generators/cmdx/locale_generator.rb +39 -0
- data/lib/generators/cmdx/templates/install.rb +7 -0
- data/lib/generators/cmdx/templates/workflow.rb.tt +8 -0
- data/lib/generators/cmdx/workflow_generator.rb +57 -0
- data/lib/locales/af.yml +49 -0
- data/lib/locales/ar.yml +49 -0
- data/lib/locales/az.yml +49 -0
- data/lib/locales/be.yml +49 -0
- data/lib/locales/bg.yml +49 -0
- data/lib/locales/bn.yml +49 -0
- data/lib/locales/bs.yml +49 -0
- data/lib/locales/ca.yml +49 -0
- data/lib/locales/cnr.yml +49 -0
- data/lib/locales/cs.yml +49 -0
- data/lib/locales/cy.yml +49 -0
- data/lib/locales/da.yml +49 -0
- data/lib/locales/de.yml +49 -0
- data/lib/locales/dz.yml +49 -0
- data/lib/locales/el.yml +49 -0
- data/lib/locales/eo.yml +49 -0
- data/lib/locales/es.yml +49 -0
- data/lib/locales/et.yml +49 -0
- data/lib/locales/eu.yml +49 -0
- data/lib/locales/fa.yml +49 -0
- data/lib/locales/fi.yml +49 -0
- data/lib/locales/fr.yml +49 -0
- data/lib/locales/fy.yml +49 -0
- data/lib/locales/gd.yml +49 -0
- data/lib/locales/gl.yml +49 -0
- data/lib/locales/he.yml +49 -0
- data/lib/locales/hi.yml +49 -0
- data/lib/locales/hr.yml +49 -0
- data/lib/locales/hu.yml +49 -0
- data/lib/locales/hy.yml +49 -0
- data/lib/locales/id.yml +49 -0
- data/lib/locales/is.yml +49 -0
- data/lib/locales/it.yml +49 -0
- data/lib/locales/ja.yml +49 -0
- data/lib/locales/ka.yml +49 -0
- data/lib/locales/kk.yml +49 -0
- data/lib/locales/km.yml +49 -0
- data/lib/locales/kn.yml +49 -0
- data/lib/locales/ko.yml +49 -0
- data/lib/locales/lb.yml +49 -0
- data/lib/locales/lo.yml +49 -0
- data/lib/locales/lt.yml +49 -0
- data/lib/locales/lv.yml +49 -0
- data/lib/locales/mg.yml +49 -0
- data/lib/locales/mk.yml +49 -0
- data/lib/locales/ml.yml +49 -0
- data/lib/locales/mn.yml +49 -0
- data/lib/locales/mr-IN.yml +49 -0
- data/lib/locales/ms.yml +49 -0
- data/lib/locales/nb.yml +49 -0
- data/lib/locales/ne.yml +49 -0
- data/lib/locales/nl.yml +49 -0
- data/lib/locales/nn.yml +49 -0
- data/lib/locales/oc.yml +49 -0
- data/lib/locales/or.yml +49 -0
- data/lib/locales/pa.yml +49 -0
- data/lib/locales/pl.yml +49 -0
- data/lib/locales/pt.yml +49 -0
- data/lib/locales/rm.yml +49 -0
- data/lib/locales/ro.yml +49 -0
- data/lib/locales/ru.yml +49 -0
- data/lib/locales/sc.yml +49 -0
- data/lib/locales/sk.yml +49 -0
- data/lib/locales/sl.yml +49 -0
- data/lib/locales/sq.yml +49 -0
- data/lib/locales/sr.yml +49 -0
- data/lib/locales/st.yml +49 -0
- data/lib/locales/sv.yml +49 -0
- data/lib/locales/sw.yml +49 -0
- data/lib/locales/ta.yml +49 -0
- data/lib/locales/te.yml +49 -0
- data/lib/locales/th.yml +49 -0
- data/lib/locales/tl.yml +49 -0
- data/lib/locales/tr.yml +49 -0
- data/lib/locales/tt.yml +49 -0
- data/lib/locales/ug.yml +49 -0
- data/lib/locales/uk.yml +49 -0
- data/lib/locales/ur.yml +49 -0
- data/lib/locales/uz.yml +49 -0
- data/lib/locales/vi.yml +49 -0
- data/lib/locales/wo.yml +49 -0
- data/lib/locales/zh-CN.yml +49 -0
- data/lib/locales/zh-HK.yml +49 -0
- data/lib/locales/zh-TW.yml +49 -0
- data/lib/locales/zh-YUE.yml +49 -0
- metadata +117 -1
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Cmdx
|
4
|
+
# Generates CMDx locale files for Rails applications
|
5
|
+
#
|
6
|
+
# Rails generator that copies CMDx locale files into the application's
|
7
|
+
# config/locales directory. This allows applications to customize and extend
|
8
|
+
# the default CMDx locale files.
|
9
|
+
class LocaleGenerator < Rails::Generators::Base
|
10
|
+
|
11
|
+
source_root File.expand_path("../../locales", __dir__)
|
12
|
+
|
13
|
+
desc "Copies the locale with the given alpha-2 code"
|
14
|
+
|
15
|
+
argument :locale, type: :string, default: "en", banner: "locale: en, es, fr, etc"
|
16
|
+
|
17
|
+
# Copies the locale template to the Rails application
|
18
|
+
#
|
19
|
+
# Copies the specified locale file from the gem's locales directory to the
|
20
|
+
# application's config/locales directory. If the locale file doesn't exist
|
21
|
+
# in the gem, the generator will fail gracefully.
|
22
|
+
#
|
23
|
+
# @return [void]
|
24
|
+
#
|
25
|
+
# @example
|
26
|
+
# # Copy default (English) locale file
|
27
|
+
# rails generate cmdx:locale
|
28
|
+
# # => Creates config/locales/en.yml
|
29
|
+
#
|
30
|
+
# # Copy Spanish locale file
|
31
|
+
# rails generate cmdx:locale es
|
32
|
+
# # => Creates config/locales/es.yml
|
33
|
+
#
|
34
|
+
def copy_locale_files
|
35
|
+
copy_file("#{locale}.yml", "config/locales/#{locale}.yml")
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -31,4 +31,11 @@ CMDx.configure do |config|
|
|
31
31
|
formatter: CMDx::LogFormatters::Line.new,
|
32
32
|
level: Logger::INFO
|
33
33
|
)
|
34
|
+
|
35
|
+
# Additional global configurations - automatically applied to all tasks
|
36
|
+
#
|
37
|
+
# Middlewares - https://github.com/drexed/cmdx/blob/main/docs/middlewares.md
|
38
|
+
# Callbacks - https://github.com/drexed/cmdx/blob/main/docs/callbacks.md
|
39
|
+
# Coercions - https://github.com/drexed/cmdx/blob/main/docs/coercions.md
|
40
|
+
# Validations - https://github.com/drexed/cmdx/blob/main/docs/validations.md
|
34
41
|
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Cmdx
|
4
|
+
# Generates CMDx workflow files for Rails applications
|
5
|
+
#
|
6
|
+
# This generator creates task classes that inherit from either ApplicationTask
|
7
|
+
# (if defined) or CMDx::Task. It generates the task file in the standard
|
8
|
+
# Rails tasks directory structure.
|
9
|
+
class WorkflowGenerator < Rails::Generators::NamedBase
|
10
|
+
|
11
|
+
source_root File.expand_path("templates", __dir__)
|
12
|
+
|
13
|
+
desc "Creates a workflow with the given NAME"
|
14
|
+
|
15
|
+
# Copies the task template to the Rails application
|
16
|
+
#
|
17
|
+
# Creates a new task file at `app/tasks/[class_path]/[file_name].rb` using
|
18
|
+
# the task template. The file is placed in the standard Rails tasks directory
|
19
|
+
# structure, maintaining proper namespacing if the task is nested.
|
20
|
+
#
|
21
|
+
# @return [void]
|
22
|
+
#
|
23
|
+
# @example Basic usage
|
24
|
+
# rails generate cmdx:workflow SendNotifications
|
25
|
+
# # => Creates app/tasks/send_notifications.rb
|
26
|
+
#
|
27
|
+
# @example Nested task
|
28
|
+
# rails generate cmdx:workflow Admin::SendNotifications
|
29
|
+
# # => Creates app/tasks/admin/send_notifications.rb
|
30
|
+
def copy_files
|
31
|
+
path = File.join("app/tasks", class_path, "#{file_name}.rb")
|
32
|
+
template("workflow.rb.tt", path)
|
33
|
+
end
|
34
|
+
|
35
|
+
private
|
36
|
+
|
37
|
+
# Determines the appropriate parent class name for the generated task
|
38
|
+
#
|
39
|
+
# Attempts to use ApplicationTask if it exists in the application, otherwise
|
40
|
+
# falls back to CMDx::Task. This allows applications to define their own
|
41
|
+
# base task class while maintaining compatibility.
|
42
|
+
#
|
43
|
+
# @return [Class] The parent class for the generated task
|
44
|
+
#
|
45
|
+
# @example
|
46
|
+
# parent_class_name # => ApplicationTask
|
47
|
+
#
|
48
|
+
# @example Fallback behavior
|
49
|
+
# parent_class_name # => CMDx::Task
|
50
|
+
def parent_class_name
|
51
|
+
ApplicationTask
|
52
|
+
rescue NameError
|
53
|
+
CMDx::Task
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|
57
|
+
end
|
data/lib/locales/af.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
af:
|
2
|
+
cmdx:
|
3
|
+
attributes:
|
4
|
+
required: "moet toeganklik wees via die bron"
|
5
|
+
undefined: "delegeer na ongedefinieerde metode %{method}"
|
6
|
+
coercions:
|
7
|
+
into_a: "kon nie na %{type} omskep word nie"
|
8
|
+
into_an: "kon nie na %{type} omskep word nie"
|
9
|
+
into_any: "kon nie na een van: %{types} omskep word nie"
|
10
|
+
unknown: "onbekende %{type} omskep tipe"
|
11
|
+
faults:
|
12
|
+
unspecified: "geen rede gegee nie"
|
13
|
+
types:
|
14
|
+
array: "skikking"
|
15
|
+
big_decimal: "groot desimale"
|
16
|
+
boolean: "booleaanse"
|
17
|
+
complex: "kompleks"
|
18
|
+
date_time: "datum en tyd"
|
19
|
+
date: "datum"
|
20
|
+
float: "drywende punt"
|
21
|
+
hash: "hash"
|
22
|
+
integer: "heelgetal"
|
23
|
+
rational: "rasionaal"
|
24
|
+
string: "string"
|
25
|
+
symbol: "simbool"
|
26
|
+
time: "tyd"
|
27
|
+
validators:
|
28
|
+
exclusion:
|
29
|
+
of: "moet nie een van wees nie: %{values}"
|
30
|
+
within: "moet nie binne %{min} en %{max} wees nie"
|
31
|
+
format: "is 'n ongeldige formaat"
|
32
|
+
inclusion:
|
33
|
+
of: "moet een van wees: %{values}"
|
34
|
+
within: "moet binne %{min} en %{max} wees"
|
35
|
+
length:
|
36
|
+
is: "lengte moet %{is} wees"
|
37
|
+
is_not: "lengte moet nie %{is_not} wees nie"
|
38
|
+
min: "lengte moet ten minste %{min} wees"
|
39
|
+
max: "lengte kan maksimum %{max} wees"
|
40
|
+
not_within: "lengte moet nie binne %{min} en %{max} wees nie"
|
41
|
+
within: "lengte moet binne %{min} en %{max} wees"
|
42
|
+
numeric:
|
43
|
+
is: "moet %{is} wees"
|
44
|
+
is_not: "moet nie %{is_not} wees nie"
|
45
|
+
min: "moet ten minste %{min} wees"
|
46
|
+
max: "kan maksimum %{max} wees"
|
47
|
+
not_within: "moet nie binne %{min} en %{max} wees nie"
|
48
|
+
within: "moet binne %{min} en %{max} wees"
|
49
|
+
presence: "kan nie leeg wees nie"
|
data/lib/locales/ar.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
ar:
|
2
|
+
cmdx:
|
3
|
+
attributes:
|
4
|
+
required: "يجب أن يكون قابلاً للوصول عبر المصدر"
|
5
|
+
undefined: "يفوض إلى طريقة غير معرفة %{method}"
|
6
|
+
coercions:
|
7
|
+
into_a: "لا يمكن تحويله إلى %{type}"
|
8
|
+
into_an: "لا يمكن تحويله إلى %{type}"
|
9
|
+
into_any: "لا يمكن تحويله إلى واحد من: %{types}"
|
10
|
+
unknown: "نوع تحويل %{type} غير معروف"
|
11
|
+
faults:
|
12
|
+
unspecified: "لم يتم تقديم سبب"
|
13
|
+
types:
|
14
|
+
array: "مصفوفة"
|
15
|
+
big_decimal: "عدد عشري كبير"
|
16
|
+
boolean: "منطقي"
|
17
|
+
complex: "مركب"
|
18
|
+
date_time: "التاريخ والوقت"
|
19
|
+
date: "التاريخ"
|
20
|
+
float: "رقم عشري"
|
21
|
+
hash: "جدول تجزئة"
|
22
|
+
integer: "عدد صحيح"
|
23
|
+
rational: "عدد نسبي"
|
24
|
+
string: "سلسلة نصية"
|
25
|
+
symbol: "رمز"
|
26
|
+
time: "الوقت"
|
27
|
+
validators:
|
28
|
+
exclusion:
|
29
|
+
of: "يجب ألا يكون واحداً من: %{values}"
|
30
|
+
within: "يجب ألا يكون بين %{min} و %{max}"
|
31
|
+
format: "تنسيق غير صالح"
|
32
|
+
inclusion:
|
33
|
+
of: "يجب أن يكون واحداً من: %{values}"
|
34
|
+
within: "يجب أن يكون بين %{min} و %{max}"
|
35
|
+
length:
|
36
|
+
is: "يجب أن يكون الطول %{is}"
|
37
|
+
is_not: "يجب ألا يكون الطول %{is_not}"
|
38
|
+
min: "يجب أن يكون الطول على الأقل %{min}"
|
39
|
+
max: "يجب أن يكون الطول على الأكثر %{max}"
|
40
|
+
not_within: "يجب ألا يكون الطول بين %{min} و %{max}"
|
41
|
+
within: "يجب أن يكون الطول بين %{min} و %{max}"
|
42
|
+
numeric:
|
43
|
+
is: "يجب أن يكون %{is}"
|
44
|
+
is_not: "يجب ألا يكون %{is_not}"
|
45
|
+
min: "يجب أن يكون على الأقل %{min}"
|
46
|
+
max: "يجب أن يكون على الأكثر %{max}"
|
47
|
+
not_within: "يجب ألا يكون بين %{min} و %{max}"
|
48
|
+
within: "يجب أن يكون بين %{min} و %{max}"
|
49
|
+
presence: "لا يمكن أن يكون فارغاً"
|
data/lib/locales/az.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
az:
|
2
|
+
cmdx:
|
3
|
+
attributes:
|
4
|
+
required: "mənbə vasitəsilə əlçatan olmalıdır"
|
5
|
+
undefined: "müəyyən edilməmiş metoda %{method} təyin edir"
|
6
|
+
coercions:
|
7
|
+
into_a: "%{type} tipinə çevrilə bilmədi"
|
8
|
+
into_an: "%{type} tipinə çevrilə bilmədi"
|
9
|
+
into_any: "aşağıdakılardan birinə çevrilə bilmədi: %{types}"
|
10
|
+
unknown: "naməlum %{type} çevrilmə tipi"
|
11
|
+
faults:
|
12
|
+
unspecified: "səbəb göstərilməyib"
|
13
|
+
types:
|
14
|
+
array: "massiv"
|
15
|
+
big_decimal: "böyük onluq"
|
16
|
+
boolean: "məntiqi"
|
17
|
+
complex: "mürəkkəb"
|
18
|
+
date_time: "tarix və vaxt"
|
19
|
+
date: "tarix"
|
20
|
+
float: "üzən nöqtə"
|
21
|
+
hash: "haş"
|
22
|
+
integer: "tam ədəd"
|
23
|
+
rational: "rasional"
|
24
|
+
string: "sətir"
|
25
|
+
symbol: "simvol"
|
26
|
+
time: "vaxt"
|
27
|
+
validators:
|
28
|
+
exclusion:
|
29
|
+
of: "aşağıdakılardan biri ola bilməz: %{values}"
|
30
|
+
within: "%{min} və %{max} arasında ola bilməz"
|
31
|
+
format: "etibarsız formatdır"
|
32
|
+
inclusion:
|
33
|
+
of: "aşağıdakılardan biri olmalıdır: %{values}"
|
34
|
+
within: "%{min} və %{max} arasında olmalıdır"
|
35
|
+
length:
|
36
|
+
is: "uzunluq %{is} olmalıdır"
|
37
|
+
is_not: "uzunluq %{is_not} ola bilməz"
|
38
|
+
min: "uzunluq ən azı %{min} olmalıdır"
|
39
|
+
max: "uzunluq ən çoxu %{max} ola bilər"
|
40
|
+
not_within: "uzunluq %{min} və %{max} arasında ola bilməz"
|
41
|
+
within: "uzunluq %{min} və %{max} arasında olmalıdır"
|
42
|
+
numeric:
|
43
|
+
is: "%{is} olmalıdır"
|
44
|
+
is_not: "%{is_not} ola bilməz"
|
45
|
+
min: "ən azı %{min} olmalıdır"
|
46
|
+
max: "ən çoxu %{max} ola bilər"
|
47
|
+
not_within: "%{min} və %{max} arasında ola bilməz"
|
48
|
+
within: "%{min} və %{max} arasında olmalıdır"
|
49
|
+
presence: "boş ola bilməz"
|
data/lib/locales/be.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
be:
|
2
|
+
cmdx:
|
3
|
+
attributes:
|
4
|
+
required: "павінна быць даступна праз крыніцу"
|
5
|
+
undefined: "дэлегуе невызначанаму метаду %{method}"
|
6
|
+
coercions:
|
7
|
+
into_a: "не ўдалося пераўтварыць у %{type}"
|
8
|
+
into_an: "не ўдалося пераўтварыць у %{type}"
|
9
|
+
into_any: "не ўдалося пераўтварыць у адзін з: %{types}"
|
10
|
+
unknown: "невядомы тып пераўтварэння %{type}"
|
11
|
+
faults:
|
12
|
+
unspecified: "прычына не паказана"
|
13
|
+
types:
|
14
|
+
array: "масіў"
|
15
|
+
big_decimal: "вялікае дзесятковае лік"
|
16
|
+
boolean: "лагічны"
|
17
|
+
complex: "камплексны"
|
18
|
+
date_time: "дата і час"
|
19
|
+
date: "дата"
|
20
|
+
float: "лік з плаваючай коскай"
|
21
|
+
hash: "хэш"
|
22
|
+
integer: "цэлы лік"
|
23
|
+
rational: "рацыянальны"
|
24
|
+
string: "радок"
|
25
|
+
symbol: "сімвал"
|
26
|
+
time: "час"
|
27
|
+
validators:
|
28
|
+
exclusion:
|
29
|
+
of: "не можа быць адным з: %{values}"
|
30
|
+
within: "не можа быць паміж %{min} і %{max}"
|
31
|
+
format: "з'яўляецца несапраўдным фарматам"
|
32
|
+
inclusion:
|
33
|
+
of: "павінна быць адным з: %{values}"
|
34
|
+
within: "павінна быць паміж %{min} і %{max}"
|
35
|
+
length:
|
36
|
+
is: "даўжыня павінна быць %{is}"
|
37
|
+
is_not: "даўжыня не можа быць %{is_not}"
|
38
|
+
min: "даўжыня павінна быць не менш %{min}"
|
39
|
+
max: "даўжыня можа быць не больш %{max}"
|
40
|
+
not_within: "даўжыня не можа быць паміж %{min} і %{max}"
|
41
|
+
within: "даўжыня павінна быць паміж %{min} і %{max}"
|
42
|
+
numeric:
|
43
|
+
is: "павінна быць %{is}"
|
44
|
+
is_not: "не можа быць %{is_not}"
|
45
|
+
min: "павінна быць не менш %{min}"
|
46
|
+
max: "можа быць не больш %{max}"
|
47
|
+
not_within: "не можа быць паміж %{min} і %{max}"
|
48
|
+
within: "павінна быць паміж %{min} і %{max}"
|
49
|
+
presence: "не можа быць пустым"
|
data/lib/locales/bg.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
bg:
|
2
|
+
cmdx:
|
3
|
+
attributes:
|
4
|
+
required: "трябва да бъде достъпен чрез източника"
|
5
|
+
undefined: "делегира към недефиниран метод %{method}"
|
6
|
+
coercions:
|
7
|
+
into_a: "не може да бъде преобразуван в %{type}"
|
8
|
+
into_an: "не може да бъде преобразуван в %{type}"
|
9
|
+
into_any: "не може да бъде преобразуван в един от: %{types}"
|
10
|
+
unknown: "неизвестен тип преобразуване %{type}"
|
11
|
+
faults:
|
12
|
+
unspecified: "не е посочена причина"
|
13
|
+
types:
|
14
|
+
array: "масив"
|
15
|
+
big_decimal: "голямо десетично число"
|
16
|
+
boolean: "булев"
|
17
|
+
complex: "комплексен"
|
18
|
+
date_time: "дата и час"
|
19
|
+
date: "дата"
|
20
|
+
float: "число с плаваща запетая"
|
21
|
+
hash: "хеш"
|
22
|
+
integer: "цяло число"
|
23
|
+
rational: "рационално"
|
24
|
+
string: "низ"
|
25
|
+
symbol: "символ"
|
26
|
+
time: "час"
|
27
|
+
validators:
|
28
|
+
exclusion:
|
29
|
+
of: "не може да бъде един от: %{values}"
|
30
|
+
within: "не може да бъде между %{min} и %{max}"
|
31
|
+
format: "е невалиден формат"
|
32
|
+
inclusion:
|
33
|
+
of: "трябва да бъде един от: %{values}"
|
34
|
+
within: "трябва да бъде между %{min} и %{max}"
|
35
|
+
length:
|
36
|
+
is: "дължината трябва да бъде %{is}"
|
37
|
+
is_not: "дължината не може да бъде %{is_not}"
|
38
|
+
min: "дължината трябва да бъде поне %{min}"
|
39
|
+
max: "дължината може да бъде най-много %{max}"
|
40
|
+
not_within: "дължината не може да бъде между %{min} и %{max}"
|
41
|
+
within: "дължината трябва да бъде между %{min} и %{max}"
|
42
|
+
numeric:
|
43
|
+
is: "трябва да бъде %{is}"
|
44
|
+
is_not: "не може да бъде %{is_not}"
|
45
|
+
min: "трябва да бъде поне %{min}"
|
46
|
+
max: "може да бъде най-много %{max}"
|
47
|
+
not_within: "не може да бъде между %{min} и %{max}"
|
48
|
+
within: "трябва да бъде между %{min} и %{max}"
|
49
|
+
presence: "не може да бъде празно"
|
data/lib/locales/bn.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
bn:
|
2
|
+
cmdx:
|
3
|
+
attributes:
|
4
|
+
required: "উৎসের মাধ্যমে অ্যাক্সেসযোগ্য হতে হবে"
|
5
|
+
undefined: "অসংজ্ঞায়িত পদ্ধতিতে %{method} অর্পণ করে"
|
6
|
+
coercions:
|
7
|
+
into_a: "%{type} এ রূপান্তর করা যায়নি"
|
8
|
+
into_an: "%{type} এ রূপান্তর করা যায়নি"
|
9
|
+
into_any: "নিম্নলিখিতগুলির মধ্যে একটিতে রূপান্তর করা যায়নি: %{types}"
|
10
|
+
unknown: "অজানা %{type} রূপান্তর প্রকার"
|
11
|
+
faults:
|
12
|
+
unspecified: "কোন কারণ দেওয়া হয়নি"
|
13
|
+
types:
|
14
|
+
array: "অ্যারে"
|
15
|
+
big_decimal: "বড় দশমিক"
|
16
|
+
boolean: "বুলিয়ান"
|
17
|
+
complex: "জটিল"
|
18
|
+
date_time: "তারিখ এবং সময়"
|
19
|
+
date: "তারিখ"
|
20
|
+
float: "ভাসমান বিন্দু"
|
21
|
+
hash: "হ্যাশ"
|
22
|
+
integer: "পূর্ণসংখ্যা"
|
23
|
+
rational: "মূলদ"
|
24
|
+
string: "স্ট্রিং"
|
25
|
+
symbol: "প্রতীক"
|
26
|
+
time: "সময়"
|
27
|
+
validators:
|
28
|
+
exclusion:
|
29
|
+
of: "নিম্নলিখিতগুলির মধ্যে একটি হতে পারবে না: %{values}"
|
30
|
+
within: "%{min} এবং %{max} এর মধ্যে থাকতে পারবে না"
|
31
|
+
format: "একটি অবৈধ ফরম্যাট"
|
32
|
+
inclusion:
|
33
|
+
of: "নিম্নলিখিতগুলির মধ্যে একটি হতে হবে: %{values}"
|
34
|
+
within: "%{min} এবং %{max} এর মধ্যে থাকতে হবে"
|
35
|
+
length:
|
36
|
+
is: "দৈর্ঘ্য %{is} হতে হবে"
|
37
|
+
is_not: "দৈর্ঘ্য %{is_not} হতে পারবে না"
|
38
|
+
min: "দৈর্ঘ্য কমপক্ষে %{min} হতে হবে"
|
39
|
+
max: "দৈর্ঘ্য সর্বোচ্চ %{max} হতে পারবে"
|
40
|
+
not_within: "দৈর্ঘ্য %{min} এবং %{max} এর মধ্যে থাকতে পারবে না"
|
41
|
+
within: "দৈর্ঘ্য %{min} এবং %{max} এর মধ্যে থাকতে হবে"
|
42
|
+
numeric:
|
43
|
+
is: "%{is} হতে হবে"
|
44
|
+
is_not: "%{is_not} হতে পারবে না"
|
45
|
+
min: "কমপক্ষে %{min} হতে হবে"
|
46
|
+
max: "সর্বোচ্চ %{max} হতে পারবে"
|
47
|
+
not_within: "%{min} এবং %{max} এর মধ্যে থাকতে পারবে না"
|
48
|
+
within: "%{min} এবং %{max} এর মধ্যে থাকতে হবে"
|
49
|
+
presence: "খালি হতে পারবে না"
|
data/lib/locales/bs.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
bs:
|
2
|
+
cmdx:
|
3
|
+
attributes:
|
4
|
+
required: "mora biti dostupan kroz izvor"
|
5
|
+
undefined: "delegira nedefiniranoj metodi %{method}"
|
6
|
+
coercions:
|
7
|
+
into_a: "nije mogao biti pretvoren u %{type}"
|
8
|
+
into_an: "nije mogao biti pretvoren u %{type}"
|
9
|
+
into_any: "nije mogao biti pretvoren u jedan od: %{types}"
|
10
|
+
unknown: "nepoznati tip pretvorbe %{type}"
|
11
|
+
faults:
|
12
|
+
unspecified: "nije naveden razlog"
|
13
|
+
types:
|
14
|
+
array: "niz"
|
15
|
+
big_decimal: "veliki decimalni broj"
|
16
|
+
boolean: "logički"
|
17
|
+
complex: "kompleksan"
|
18
|
+
date_time: "datum i vrijeme"
|
19
|
+
date: "datum"
|
20
|
+
float: "broj s pomičnom točkom"
|
21
|
+
hash: "hash"
|
22
|
+
integer: "cijeli broj"
|
23
|
+
rational: "racionalan"
|
24
|
+
string: "niz znakova"
|
25
|
+
symbol: "simbol"
|
26
|
+
time: "vrijeme"
|
27
|
+
validators:
|
28
|
+
exclusion:
|
29
|
+
of: "ne smije biti jedan od: %{values}"
|
30
|
+
within: "ne smije biti između %{min} i %{max}"
|
31
|
+
format: "je nevažeći format"
|
32
|
+
inclusion:
|
33
|
+
of: "mora biti jedan od: %{values}"
|
34
|
+
within: "mora biti između %{min} i %{max}"
|
35
|
+
length:
|
36
|
+
is: "dužina mora biti %{is}"
|
37
|
+
is_not: "dužina ne smije biti %{is_not}"
|
38
|
+
min: "dužina mora biti najmanje %{min}"
|
39
|
+
max: "dužina može biti najviše %{max}"
|
40
|
+
not_within: "dužina ne smije biti između %{min} i %{max}"
|
41
|
+
within: "dužina mora biti između %{min} i %{max}"
|
42
|
+
numeric:
|
43
|
+
is: "mora biti %{is}"
|
44
|
+
is_not: "ne smije biti %{is_not}"
|
45
|
+
min: "mora biti najmanje %{min}"
|
46
|
+
max: "može biti najviše %{max}"
|
47
|
+
not_within: "ne smije biti između %{min} i %{max}"
|
48
|
+
within: "mora biti između %{min} i %{max}"
|
49
|
+
presence: "ne može biti prazno"
|
data/lib/locales/ca.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
ca:
|
2
|
+
cmdx:
|
3
|
+
attributes:
|
4
|
+
required: "ha de ser accessible a través de la font"
|
5
|
+
undefined: "delega al mètode no definit %{method}"
|
6
|
+
coercions:
|
7
|
+
into_a: "no es va poder convertir a %{type}"
|
8
|
+
into_an: "no es va poder convertir a %{type}"
|
9
|
+
into_any: "no es va poder convertir a un de: %{types}"
|
10
|
+
unknown: "tipus de conversió %{type} desconegut"
|
11
|
+
faults:
|
12
|
+
unspecified: "no s'ha donat cap raó"
|
13
|
+
types:
|
14
|
+
array: "array"
|
15
|
+
big_decimal: "decimal gran"
|
16
|
+
boolean: "booleà"
|
17
|
+
complex: "complex"
|
18
|
+
date_time: "data i hora"
|
19
|
+
date: "data"
|
20
|
+
float: "punt flotant"
|
21
|
+
hash: "hash"
|
22
|
+
integer: "enter"
|
23
|
+
rational: "racional"
|
24
|
+
string: "cadena"
|
25
|
+
symbol: "símbol"
|
26
|
+
time: "temps"
|
27
|
+
validators:
|
28
|
+
exclusion:
|
29
|
+
of: "no ha de ser un de: %{values}"
|
30
|
+
within: "no ha d'estar entre %{min} i %{max}"
|
31
|
+
format: "és un format no vàlid"
|
32
|
+
inclusion:
|
33
|
+
of: "ha de ser un de: %{values}"
|
34
|
+
within: "ha d'estar entre %{min} i %{max}"
|
35
|
+
length:
|
36
|
+
is: "la longitud ha de ser %{is}"
|
37
|
+
is_not: "la longitud no ha de ser %{is_not}"
|
38
|
+
min: "la longitud ha de ser almenys %{min}"
|
39
|
+
max: "la longitud ha de ser com a màxim %{max}"
|
40
|
+
not_within: "la longitud no ha d'estar entre %{min} i %{max}"
|
41
|
+
within: "la longitud ha d'estar entre %{min} i %{max}"
|
42
|
+
numeric:
|
43
|
+
is: "ha de ser %{is}"
|
44
|
+
is_not: "no ha de ser %{is_not}"
|
45
|
+
min: "ha de ser almenys %{min}"
|
46
|
+
max: "ha de ser com a màxim %{max}"
|
47
|
+
not_within: "no ha d'estar entre %{min} i %{max}"
|
48
|
+
within: "ha d'estar entre %{min} i %{max}"
|
49
|
+
presence: "no pot estar buit"
|
data/lib/locales/cnr.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
cnr:
|
2
|
+
cmdx:
|
3
|
+
attributes:
|
4
|
+
required: "mora biti dostupan preko izvora"
|
5
|
+
undefined: "delegira na nedefinisani metod %{method}"
|
6
|
+
coercions:
|
7
|
+
into_a: "nije mogao konvertovati u %{type}"
|
8
|
+
into_an: "nije mogao konvertovati u %{type}"
|
9
|
+
into_any: "nije mogao konvertovati u jedan od: %{types}"
|
10
|
+
unknown: "nepoznati %{type} tip konverzije"
|
11
|
+
faults:
|
12
|
+
unspecified: "nije dat razlog"
|
13
|
+
types:
|
14
|
+
array: "niz"
|
15
|
+
big_decimal: "veliki decimalni"
|
16
|
+
boolean: "bulovski"
|
17
|
+
complex: "kompleksan"
|
18
|
+
date_time: "datum i vrijeme"
|
19
|
+
date: "datum"
|
20
|
+
float: "pokretna tačka"
|
21
|
+
hash: "hash"
|
22
|
+
integer: "cijeli broj"
|
23
|
+
rational: "racionalan"
|
24
|
+
string: "string"
|
25
|
+
symbol: "simbol"
|
26
|
+
time: "vrijeme"
|
27
|
+
validators:
|
28
|
+
exclusion:
|
29
|
+
of: "ne smije biti jedan od: %{values}"
|
30
|
+
within: "ne smije biti između %{min} i %{max}"
|
31
|
+
format: "je nevažeći format"
|
32
|
+
inclusion:
|
33
|
+
of: "mora biti jedan od: %{values}"
|
34
|
+
within: "mora biti između %{min} i %{max}"
|
35
|
+
length:
|
36
|
+
is: "dužina mora biti %{is}"
|
37
|
+
is_not: "dužina ne smije biti %{is_not}"
|
38
|
+
min: "dužina mora biti najmanje %{min}"
|
39
|
+
max: "dužina može biti najviše %{max}"
|
40
|
+
not_within: "dužina ne smije biti između %{min} i %{max}"
|
41
|
+
within: "dužina mora biti između %{min} i %{max}"
|
42
|
+
numeric:
|
43
|
+
is: "mora biti %{is}"
|
44
|
+
is_not: "ne smije biti %{is_not}"
|
45
|
+
min: "mora biti najmanje %{min}"
|
46
|
+
max: "može biti najviše %{max}"
|
47
|
+
not_within: "ne smije biti između %{min} i %{max}"
|
48
|
+
within: "mora biti između %{min} i %{max}"
|
49
|
+
presence: "ne može biti prazan"
|
data/lib/locales/cs.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
cs:
|
2
|
+
cmdx:
|
3
|
+
attributes:
|
4
|
+
required: "musí být přístupné přes zdroj"
|
5
|
+
undefined: "deleguje na nedefinovanou metodu %{method}"
|
6
|
+
coercions:
|
7
|
+
into_a: "nelze převést na %{type}"
|
8
|
+
into_an: "nelze převést na %{type}"
|
9
|
+
into_any: "nelze převést na jeden z: %{types}"
|
10
|
+
unknown: "neznámý typ převodu %{type}"
|
11
|
+
faults:
|
12
|
+
unspecified: "není uveden důvod"
|
13
|
+
types:
|
14
|
+
array: "pole"
|
15
|
+
big_decimal: "velké desetinné číslo"
|
16
|
+
boolean: "logický"
|
17
|
+
complex: "komplexní"
|
18
|
+
date_time: "datum a čas"
|
19
|
+
date: "datum"
|
20
|
+
float: "desetinné číslo"
|
21
|
+
hash: "hash"
|
22
|
+
integer: "celé číslo"
|
23
|
+
rational: "racionální"
|
24
|
+
string: "řetězec"
|
25
|
+
symbol: "symbol"
|
26
|
+
time: "čas"
|
27
|
+
validators:
|
28
|
+
exclusion:
|
29
|
+
of: "nesmí být jedním z: %{values}"
|
30
|
+
within: "nesmí být mezi %{min} a %{max}"
|
31
|
+
format: "je neplatný formát"
|
32
|
+
inclusion:
|
33
|
+
of: "musí být jedním z: %{values}"
|
34
|
+
within: "musí být mezi %{min} a %{max}"
|
35
|
+
length:
|
36
|
+
is: "délka musí být %{is}"
|
37
|
+
is_not: "délka nesmí být %{is_not}"
|
38
|
+
min: "délka musí být alespoň %{min}"
|
39
|
+
max: "délka může být nejvýše %{max}"
|
40
|
+
not_within: "délka nesmí být mezi %{min} a %{max}"
|
41
|
+
within: "délka musí být mezi %{min} a %{max}"
|
42
|
+
numeric:
|
43
|
+
is: "musí být %{is}"
|
44
|
+
is_not: "nesmí být %{is_not}"
|
45
|
+
min: "musí být alespoň %{min}"
|
46
|
+
max: "může být nejvýše %{max}"
|
47
|
+
not_within: "nesmí být mezi %{min} a %{max}"
|
48
|
+
within: "musí být mezi %{min} a %{max}"
|
49
|
+
presence: "nesmí být prázdné"
|
data/lib/locales/cy.yml
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
cy:
|
2
|
+
cmdx:
|
3
|
+
attributes:
|
4
|
+
required: "rhaid iddo fod yn hygyrch drwy'r ffynhonnell"
|
5
|
+
undefined: "delegio i'r dull amhendant %{method}"
|
6
|
+
coercions:
|
7
|
+
into_a: "ni allwyd ei drawsnewid i %{type}"
|
8
|
+
into_an: "ni allwyd ei drawsnewid i %{type}"
|
9
|
+
into_any: "ni allwyd ei drawsnewid i un o: %{types}"
|
10
|
+
unknown: "math anhysbys o drawsnewid %{type}"
|
11
|
+
faults:
|
12
|
+
unspecified: "dim rheswm wedi'i roi"
|
13
|
+
types:
|
14
|
+
array: "arae"
|
15
|
+
big_decimal: "degol mawr"
|
16
|
+
boolean: "booleaidd"
|
17
|
+
complex: "cymhleth"
|
18
|
+
date_time: "dyddiad ac amser"
|
19
|
+
date: "dyddiad"
|
20
|
+
float: "rhif pwynt arnofio"
|
21
|
+
hash: "hash"
|
22
|
+
integer: "cyfanrif"
|
23
|
+
rational: "rhesymegol"
|
24
|
+
string: "llinyn"
|
25
|
+
symbol: "symbol"
|
26
|
+
time: "amser"
|
27
|
+
validators:
|
28
|
+
exclusion:
|
29
|
+
of: "ni all fod yn un o: %{values}"
|
30
|
+
within: "ni all fod rhwng %{min} a %{max}"
|
31
|
+
format: "yn fformat annilys"
|
32
|
+
inclusion:
|
33
|
+
of: "rhaid iddo fod yn un o: %{values}"
|
34
|
+
within: "rhaid iddo fod rhwng %{min} a %{max}"
|
35
|
+
length:
|
36
|
+
is: "rhaid i'r hyd fod yn %{is}"
|
37
|
+
is_not: "ni all y hyd fod yn %{is_not}"
|
38
|
+
min: "rhaid i'r hyd fod o leiaf %{min}"
|
39
|
+
max: "gall y hyd fod yn fwyaf %{max}"
|
40
|
+
not_within: "ni all y hyd fod rhwng %{min} a %{max}"
|
41
|
+
within: "rhaid i'r hyd fod rhwng %{min} a %{max}"
|
42
|
+
numeric:
|
43
|
+
is: "rhaid iddo fod yn %{is}"
|
44
|
+
is_not: "ni all fod yn %{is_not}"
|
45
|
+
min: "rhaid iddo fod o leiaf %{min}"
|
46
|
+
max: "gall fod yn fwyaf %{max}"
|
47
|
+
not_within: "ni all fod rhwng %{min} a %{max}"
|
48
|
+
within: "rhaid iddo fod rhwng %{min} a %{max}"
|
49
|
+
presence: "ni all fod yn wag"
|