-
Elixir的国际化库(由语言学家提供)
资源介绍
语言学家
语言学家是一个简单的Elixir国际化库
用法
defmodule I18n do
use Linguist . Vocabulary
locale " en " , [
flash: [
notice: [
hello: " hello %{first} %{last} " ,
bye: " bye now, %{name}! "
]
],
users: [
title: " Users " ,
profiles: [
title: " Profiles " ,
]
]
]
locale " fr " , Path . join ([ __DIR__ , " fr.exs " ])
end
# fr.exs
[
flas