Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translations for kind attribute for Machine and Specialist #142

Merged
merged 1 commit into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add translations for kind attribute for Machine and Specialist
  • Loading branch information
srozen committed Apr 13, 2023
commit 24651690d398a214e5d3e13d12328b21fdc896f2
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

* Add translations for `kind` attribute for `Machine` and `Specialist`

## [0.15.0] - 2023-04-12

* Add `capabilities` attribute to `Machine` and `Specialist`
Expand Down
39 changes: 39 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,41 @@ de:
shrink_wrapping: Schrumpffolienverpackung
addressing: Adressieren
franking: Frankieren
"zaikio/hub/machine/kind":
adhesive_binder: Klebehefter
binder: Bindemaschine
book_puncher: Buchhefter
box_maker: Kartonagenbauer
box_packer: Kartonagenpacker
case_maker: Faltschachtelbauer
corner_rounder: Eckenrundungsgerät
ctp: Computer-zu-Platte
cutter: Schneidemaschine
digital_press: Digitaldruckmaschine
drill: Bohrmaschine
drill_puncher: Bohrhefter
eyeletter: Blickfang
flexo_press: Flexodruckmaschine
folder: Falzmaschine
gatherer: Sammelmaschine
inkjet_press: Tintenstrahldruckmaschine
laminator: Laminiermaschine
letterpress_press: Buchdruckmaschine
notcher: Nieter
offset_press: Offsetdruckmaschine
pad_press: Pad-Druckmaschine
perforator: Perforator
platesetter: Plattenbelichter
shape_cutter: Formschneider
silkscreen_press: Siebdruckmaschine
spindle_drill: Spindeldrill
stitcher: Heftmaschine
thread_sewer: Fadenhefter
trimmer: Schneidemaschine
web_digital_press: Web Digitaldruckmaschine
web_inkjet_press: Web Tintenstrahldruckmaschine
web_offset_press: Web Offsetdruckmaschine
web_silkscreen_press: Web Siebdruckmaschine
"zaikio/hub/specialist/capability":
envelope_stuffing: Umschlag füllen
counting: Zählen
Expand All @@ -50,3 +85,7 @@ de:
shrink_wrapping: Schrumpffolienverpackung
addressing: Adressieren
franking: Frankieren
"zaikio/hub/specialist/kind":
other: Andere
boxing: Verpackung
shipping: Versand
39 changes: 39 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,41 @@ en:
shrink_wrapping: Shrink wrapping
addressing: Addressing
franking: Franking
"zaikio/hub/machine/kind":
adhesive_binder: Adhesive Binder
binder: Binder
book_puncher: Book Puncher
box_maker: Box Maker
box_packer: Box Packer
case_maker: Case Maker
corner_rounder: Corner Rounder
ctp: CTP
cutter: Cutter
digital_press: Digital Press
drill: Drill
drill_puncher: Drill Puncher
eyeletter: Eyeletter
flexo_press: Flexo Press
folder: Folder
gatherer: Gatherer
inkjet_press: Inkjet Press
laminator: Laminator
letterpress_press: Letterpress Press
notcher: Notcher
offset_press: Offset Press
pad_press: Pad Press
perforator: Perforator
platesetter: Platesetter
shape_cutter: Shape Cutter
silkscreen_press: Silkscreen Press
spindle_drill: Spindle Drill
stitcher: Stitcher
thread_sewer: Thread Sewer
trimmer: Trimmer
web_digital_press: Web Digital Press
web_inkjet_press: Web Inkjet Press
web_offset_press: Web Offset Press
web_silkscreen_press: Web Silkscreen Press
"zaikio/hub/specialist/capability":
envelope_stuffing: Envelope stuffing
counting: Counting
Expand All @@ -50,3 +85,7 @@ en:
shrink_wrapping: Shrink wrapping
addressing: Addressing
franking: Franking
"zaikio/hub/specialist/kind":
other: Other
boxing: Boxing
shipping: Shipping
9 changes: 9 additions & 0 deletions test/zaikio/hub_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -438,4 +438,13 @@ def default_headers(token)
.human_attribute_name("capability.digital_printing")
end
end

test "get kind translations" do
I18n.default_locale = :en
I18n.config.available_locales = %i[en de]
I18n.with_locale(:de) do
assert_equal "Digitaldruckmaschine", Zaikio::Hub::Machine
.human_attribute_name("kind.digital_press")
end
end
end