diff --git a/CHANGELOG.md b/CHANGELOG.md index 46009d5..52f0034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,9 +8,8 @@ This is the changelog for Cldr Routes version 0.6.0 released on July 24th, 2022. * Adds `MyApp.Router.LocalizedHelpers._links` functions to the generated `LocalizedHelpers` module. These `_links` functions are 1:1 correspondents to the `_path` and `_url` helpers. The `_link` helpers generate link headers that help identify the other language versions of a page. They are used like this: ```elixir -iex> alias MyApp.Router.LocalizedHelpers -iex> LocalizedHelpers.user_links(conn, :show, 1) -...> |> LocalizedHelpers.hreflang_links() +iex> alias MyApp.Router.LocalizedHelpers, as: Routes +iex> Routes.user_links(conn, :show, 1) |> Routes.hreflang_links() { :safe, [ diff --git a/lib/cldr/routes/helpers.ex b/lib/cldr/routes/helpers.ex index 4a808c5..951a394 100644 --- a/lib/cldr/routes/helpers.ex +++ b/lib/cldr/routes/helpers.ex @@ -331,7 +331,7 @@ defmodule Cldr.Route.LocalizedHelpers do end @doc """ - Generates an HTTP `Link` header for a given map of locale => URLs + Generates HTML `link` tags for a given map of locale => URLs This function generates `` tags that should be placed in the `` section of an HTML document to indicate the different language @@ -477,9 +477,9 @@ defmodule Cldr.Route.LocalizedHelpers do end @doc """ - Generates an HTTP `Link` header for a given map of locale => URLs + Generates HTML `link` tags for a given map of locale => URLs - This function generates `` headers that should be placed in the + This function generates `` tags that should be placed in the `` section of an HTML document to indicate the different language versions of a given page.