Internationalization
This Page Under Construction
Installation and Setup
Usage
ActiveRecord Models
# config/locales/models/en.yml
en:
activerecord:
models:
user: 'Customer'
attributes:
name: 'Name'User.model_name.human
# 'Customer'
User.human_attribute_name(:name)
# 'Name'Views
# config/locales/views/en.yml
en:
users:
show:
title: 'Customer View'module Users
class Show < Hyperstack::Component
render do
H1 { t(:title) }
end
end
end
# <h1>Customer View</h1>Server Rendering
Last updated
Was this helpful?
