Multilingual.Routes (multilingual v0.1.0)
Summary
Functions
Builds a mapping of locales to paths for the current page
Creates metadata for multilingual routes.
Returns the locale from the metadata of the route which provides the requested path.
Functions
Link to this function
build_page_mapping(router, path)
Builds a mapping of locales to paths for the current page
Link to this function
locale(route)
Link to this function
localized_path(router, path, locale)
Link to this function
metadata(locale)
Creates metadata for multilingual routes.
Examples
iex> Multilingual.Routes.metadata("it")
[metadata: %{multilingual: %{locale: "it"}}]
Link to this function
path_locale(router, path)
Returns the locale from the metadata of the route which provides the requested path.