forked from shibao/cannery
add translation properly
This commit is contained in:
parent
119f2af6bb
commit
ebf32c49bf
@ -1,3 +1,6 @@
|
||||
# v0.5.0
|
||||
- Add German translation: Thank you [Kaia](https://shitposter.club/users/kaia)!
|
||||
|
||||
# v0.4.1
|
||||
- Fix button and tag text wrapping
|
||||
- Code quality fixes
|
||||
|
@ -141,3 +141,4 @@ In `prod` mode (or in the Docker container), Cannery will listen for the same en
|
||||
Thank you so much for your contributions!
|
||||
|
||||
- shibao (https://misskey.bubbletea.dev/@shibao)
|
||||
- kaia (https://shitposter.club/users/kaia)
|
||||
|
@ -14,8 +14,8 @@ end
|
||||
|
||||
config :cannery, CanneryWeb.ViewHelpers, shibao_mode: System.get_env("SHIBAO_MODE") == "true"
|
||||
|
||||
# Set locale
|
||||
Gettext.put_locale(System.get_env("LOCALE") || "en_US")
|
||||
# Set default locale
|
||||
config :gettext, :default_locale, System.get_env("LOCALE") || "en_US"
|
||||
|
||||
maybe_ipv6 = if System.get_env("ECTO_IPV6") == "true", do: [:inet6], else: []
|
||||
|
||||
|
@ -133,7 +133,7 @@ defmodule CanneryWeb.HomeLive do
|
||||
to: "https://gitea.bubbletea.dev/shibao/cannery/src/branch/stable/CHANGELOG.md",
|
||||
target: "_blank",
|
||||
rel: "noopener noreferrer" do %>
|
||||
<p>0.4.1</p>
|
||||
<p>0.5.0</p>
|
||||
<i class="fas fa-md fa-info-circle"></i>
|
||||
<% end %>
|
||||
</li>
|
||||
|
@ -11,6 +11,8 @@ defmodule CanneryWeb.Router do
|
||||
plug :protect_from_forgery
|
||||
plug :put_secure_browser_headers
|
||||
plug :fetch_current_user
|
||||
|
||||
Gettext.put_locale(Application.get_env(:gettext, :default_locale, "en_US"))
|
||||
end
|
||||
|
||||
pipeline :require_admin do
|
||||
|
Loading…
Reference in New Issue
Block a user