Popularity
8.0
Stable
Activity
0.0
Declining
175
38
22
Monthly Downloads: 2,830
Programming language: Elixir
License: MIT License
Latest version: v0.3.1
linguist alternatives and similar packages
Based on the "Translations and Internationalizations" category.
Alternatively, view linguist alternatives based on common mentions on social networks and blogs.
-
Codepagex
Elixir string encoding conversion - like iconv but pure Elixir -
ecto_gettext
Library for localization Ecto validation errors with using Gettext. -
exkanji
A Elixir library for translating between hiragana, katakana, romaji, kanji and sound. It uses Mecab. -
exromaji
A Elixir library for translating between hiragana, katakana, romaji and sound. -
parabaikElixirConverter
ParabaikElixirConverter is just a Elixir version of Parabaik converter
Build time-series-based applications quickly and at scale.
InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.
Promo
www.influxdata.com
Do you think we are missing an alternative of linguist or a related project?
README
Linguist
Linguist is a simple Elixir Internationalization library
Usage
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
[
flash: [
notice: [
hello: "salut %{first} %{last}"
]
]
]
iex> I18n.t!("en", "flash.notice.hello", first: "chris", last: "mccord")
"hello chris mccord"
iex> I18n.t!("fr", "flash.notice.hello", first: "chris", last: "mccord")
"salut chris mccord"
iex> I18n.t!("en", "users.title")
"Users"
Configuration
The key to use for pluralization is configurable, and should likely be an atom:
config :linguist, pluralization_key: :count
will cause the system to pluralize based on the count
parameter passed to the t
function.