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
|
# v0.4.1
|
||||||
- Fix button and tag text wrapping
|
- Fix button and tag text wrapping
|
||||||
- Code quality fixes
|
- 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!
|
Thank you so much for your contributions!
|
||||||
|
|
||||||
- shibao (https://misskey.bubbletea.dev/@shibao)
|
- 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"
|
config :cannery, CanneryWeb.ViewHelpers, shibao_mode: System.get_env("SHIBAO_MODE") == "true"
|
||||||
|
|
||||||
# Set locale
|
# Set default locale
|
||||||
Gettext.put_locale(System.get_env("LOCALE") || "en_US")
|
config :gettext, :default_locale, System.get_env("LOCALE") || "en_US"
|
||||||
|
|
||||||
maybe_ipv6 = if System.get_env("ECTO_IPV6") == "true", do: [:inet6], else: []
|
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",
|
to: "https://gitea.bubbletea.dev/shibao/cannery/src/branch/stable/CHANGELOG.md",
|
||||||
target: "_blank",
|
target: "_blank",
|
||||||
rel: "noopener noreferrer" do %>
|
rel: "noopener noreferrer" do %>
|
||||||
<p>0.4.1</p>
|
<p>0.5.0</p>
|
||||||
<i class="fas fa-md fa-info-circle"></i>
|
<i class="fas fa-md fa-info-circle"></i>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
|
@ -11,6 +11,8 @@ defmodule CanneryWeb.Router do
|
|||||||
plug :protect_from_forgery
|
plug :protect_from_forgery
|
||||||
plug :put_secure_browser_headers
|
plug :put_secure_browser_headers
|
||||||
plug :fetch_current_user
|
plug :fetch_current_user
|
||||||
|
|
||||||
|
Gettext.put_locale(Application.get_env(:gettext, :default_locale, "en_US"))
|
||||||
end
|
end
|
||||||
|
|
||||||
pipeline :require_admin do
|
pipeline :require_admin do
|
||||||
|
Loading…
Reference in New Issue
Block a user