user:
name:
en: User name
uk: Im`я користувача
header:
title:
en: "Hi %{name}!"
uk: "Вітаю %{name}!"
# Define resources path
CleanLocalization::Config.base_path = Pathname("#{path}/resources")
# Use client
CleanLocalization::Client.new('fr').translate("user.name")
# => "User name"
CleanLocalization::Client.new('uk').translate("user.name")
# => "Im`я користувача"
CleanLocalization::Client.new('uk').translate("header.title", name: "John Snow")
# => "Вітаю John Snow!"
CleanLocalization::Client.new('en').translate("header.title", name: "John Snow")
# => "Hi John Snow!"