Added condition for items and started with localize
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
2026-05-28 22:28:13 +02:00
parent edf3886b94
commit 9e18b233d9
10 changed files with 242 additions and 125 deletions

View File

@@ -16,6 +16,12 @@ module Vault171
# Common ones are `templates`, `generators`, or `middleware`, for example.
config.autoload_lib(ignore: %w[assets tasks])
# Setzt die Standard-Sprache der App dauerhaft auf Deutsch
config.i18n.default_locale = :de
# Erlaubt Rails, auch Unterordner in locales zu durchsuchen
config.i18n.available_locales = [ :de, :en ]
# Configuration for the application, engines, and railties goes here.
#
# These settings can be overridden in specific environments using the files

12
config/locales/de.yml Normal file
View File

@@ -0,0 +1,12 @@
de:
activerecord:
attributes:
item:
condition: "Zustand bei Einlagerung"
item/conditions:
unknown: "Unbekannt"
new_item: "Neu"
as_new: "Neuwertig"
used: "Gebraucht"
heavily_used: "Stark Gebraucht"
defective: "Defekt"

View File

@@ -28,4 +28,14 @@
# enabled: "ON"
en:
hello: "Hello world"
activerecord:
attributes:
item:
condition: "Condition upon storage"
conditions:
unknown: "Unknown"
new_item: "New"
as_new: "Like New"
used: "Used"
heavily_used: "Heavily Used"
defective: "Defective"