feat: complete change to gettext from homebrew i18n solution

This commit is contained in:
2026-05-03 22:28:25 +02:00
parent 4bee8cf1db
commit 4de8492c4f
96 changed files with 21579 additions and 1497 deletions

View File

@@ -2,10 +2,10 @@ defmodule BDS.Desktop.ShellLive.SettingsEditor do
@moduledoc false
use Phoenix.LiveComponent
use Gettext, backend: BDS.Gettext
import Ecto.Query
alias BDS.Desktop.ShellData
alias BDS.Repo
alias BDS.Templates.Template
@@ -386,7 +386,4 @@ defmodule BDS.Desktop.ShellLive.SettingsEditor do
defp section_matches?(query, keywords),
do: Enum.any?(keywords, &String.contains?(&1, String.downcase(query)))
@spec translated(term(), term()) :: term()
def translated(text, bindings \\ %{}),
do: ShellData.translate(text, bindings, BDS.Desktop.UILocale.current())
end