I18nParser v0.1.1 I18nParser.Detection View Source
Module for detection locale of the file
Link to this section Summary
Link to this section Functions
Detects locale
Examples
iex> detector |> I18nParser.Detection.detect()
{:ok, %{code: "en"}}
Creates detector
Parameters
- file: path to file for locale detection
Examples
iex> detector = "/en.yml" |> I18nParser.Detection.new()
%I18nParser.Detection{file: "/en.yml"}