mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-20 05:13:23 +12:00
fix: typos from find and replace
This commit is contained in:
parent
60cfefcc30
commit
1e46f80f1e
3 changed files with 10 additions and 10 deletions
|
@ -32,7 +32,7 @@ defmodule AshHqWeb.Components.Search do
|
|||
>
|
||||
<div
|
||||
:on-click-away={AshHqWeb.AppViewLive.toggle_search()}
|
||||
class="dark:text-white absolute rounded-xl left-1/2 top-1/2 transform -tranbase-dark-x-1/2 -tranbase-dark-y-1/2 w-3/4 h-3/4 bg-white dark:bg-base-dark-900 border-2 dark:border-base-dark-900"
|
||||
class="dark:text-white absolute rounded-xl left-1/2 top-1/2 transform -translate-dark-x-1/2 -translate-dark-y-1/2 w-3/4 h-3/4 bg-white dark:bg-base-dark-900 border-2 dark:border-base-dark-900"
|
||||
:on-window-keydown="select-previous"
|
||||
phx-key="ArrowUp"
|
||||
>
|
||||
|
|
|
@ -8,15 +8,15 @@ defmodule AshHqWeb.Gettext do
|
|||
import AshHqWeb.Gettext
|
||||
|
||||
# Simple translation
|
||||
gettext("Here is the string to tranbase-dark")
|
||||
gettext("Here is the string to translate-dark")
|
||||
|
||||
# Plural translation
|
||||
ngettext("Here is the string to tranbase-dark",
|
||||
"Here are the strings to tranbase-dark",
|
||||
ngettext("Here is the string to translate-dark",
|
||||
"Here are the strings to translate-dark",
|
||||
3)
|
||||
|
||||
# Domain-based translation
|
||||
dgettext("errors", "Here is the error message to tranbase-dark")
|
||||
dgettext("errors", "Here is the error message to translate-dark")
|
||||
|
||||
See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage.
|
||||
"""
|
||||
|
|
|
@ -18,20 +18,20 @@ defmodule AshHqWeb.ErrorHelpers do
|
|||
end
|
||||
|
||||
@doc """
|
||||
Tranbase-darks an error message using gettext.
|
||||
Translate an error message using gettext.
|
||||
"""
|
||||
def translate_error({msg, opts}) do
|
||||
# When using gettext, we typically pass the strings we want
|
||||
# to tranbase-dark as a static argument:
|
||||
# to translate as a static argument:
|
||||
#
|
||||
# # Tranbase-dark "is invalid" in the "errors" domain
|
||||
# # Translate "is invalid" in the "errors" domain
|
||||
# dgettext("errors", "is invalid")
|
||||
#
|
||||
# # Tranbase-dark the number of files with plural rules
|
||||
# # Translate the number of files with plural rules
|
||||
# dngettext("errors", "1 file", "%{count} files", count)
|
||||
#
|
||||
# Because the error messages we show in our forms and APIs
|
||||
# are defined inside Ecto, we need to tranbase-dark them dynamically.
|
||||
# are defined inside Ecto, we need to translate them dynamically.
|
||||
# This requires us to call the Gettext module passing our gettext
|
||||
# backend as first argument.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue