Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix more typos #221

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/cldr/accept_language.ex
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ defmodule Cldr.AcceptLanguage do

If at least one valid language tag is found but errors are also
detected on one more more tags, an `{ok, list}` tuple is returned
wuth an error tuple for each invalid tag added at the end of the list.
with an error tuple for each invalid tag added at the end of the list.

## Example

Expand Down Expand Up @@ -227,7 +227,7 @@ defmodule Cldr.AcceptLanguage do

If at least one valid language tag is found but errors are also
detected on one more more tags, an `{ok, list}` tuple is returned
wuth an error tuple for each invalid tag added at the end of the list.
with an error tuple for each invalid tag added at the end of the list.

## Example

Expand Down Expand Up @@ -330,7 +330,7 @@ defmodule Cldr.AcceptLanguage do
Parse an `Accept-Language` string and return the best match for
a configured `Cldr` locale.

* `accept_langauge` is a string representing an accept language header
* `accept_language` is a string representing an accept language header

Returns:

Expand Down
6 changes: 3 additions & 3 deletions lib/cldr/backend/accept_language.ex
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ defmodule Cldr.AcceptLanguage.Backend do

If at least one valid language tag is found but errors are also
detected on one more more tags, an `{ok, list}` tuple is returned
wuth an error tuple for each invalid tag added at the end of the list.
with an error tuple for each invalid tag added at the end of the list.

## Example

Expand Down Expand Up @@ -182,7 +182,7 @@ defmodule Cldr.AcceptLanguage.Backend do

If at least one valid language tag is found but errors are also
detected on one more more tags, an `{ok, list}` tuple is returned
wuth an error tuple for each invalid tag added at the end of the list.
with an error tuple for each invalid tag added at the end of the list.

## Example

Expand Down Expand Up @@ -284,7 +284,7 @@ defmodule Cldr.AcceptLanguage.Backend do

## Arguments

* `accept_langauge` is a string representing an accept language header
* `accept_language` is a string representing an accept language header

## Returns

Expand Down
2 changes: 1 addition & 1 deletion lib/cldr/config/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ defmodule Cldr.Config do
@spec language_tag(Locale.locale_name()) :: Cldr.LanguageTag.t() | no_return()

# Even if compiling its possible, at the beginning, that
# the cache server isn't fully up and runing to we return a
# the cache server isn't fully up and running to we return a
# non-cached version is absolutely necessary

def language_tag(locale_name) do
Expand Down
4 changes: 2 additions & 2 deletions lib/cldr/language_tag.ex
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ defmodule Cldr.LanguageTag do
end

@doc """
Parse a locale name into a `Cldr.LangaugeTag` struct and raises on error
Parse a locale name into a `Cldr.LanguageTag` struct and raises on error

## Arguments

Expand Down Expand Up @@ -247,7 +247,7 @@ defmodule Cldr.LanguageTag do

* `locale` is a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`

* `omit_singlular_script?` is a boolean indicating if the
* `omit_singular_script?` is a boolean indicating if the
script name should be omitted if the landuage_tag territory has
only this one script. The default is `false`.

Expand Down
4 changes: 2 additions & 2 deletions lib/cldr/locale.ex
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ defmodule Cldr.Locale do

## Returns

* `{:ok, langauge_tag}` or
* `{:ok, language_tag}` or

* `{:error, {exception, reason}}`

Expand Down Expand Up @@ -1945,7 +1945,7 @@ defmodule Cldr.Locale do

* `omit_singular_script?` is a boolean indicating if
a match should fail if the language tag script is the only
(default) script for the lanaguge. The default is `false`.
(default) script for the language. The default is `false`.

## Returns

Expand Down