-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for the Default Language to be changed (#294)
* Allow the default locale to be changed * Add instructions on changing default locale * Grammar
- Loading branch information
1 parent
8a6105d
commit 718dd2d
Showing
4 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,10 @@ | |
# this new config gem, then we'll migrate entirely to the new Settings | ||
# format for private instances too. | ||
|
||
# Logins are not yet supported in private instances yet due to a bit more support work | ||
# that needs to be done first. | ||
# e.g. how to hook up an email MTA. Coming soon. | ||
# Logins are disabled by default since they require an MTA (email) server | ||
# available to send emails through. | ||
# For instructions on how to enable logins, see this page: | ||
# https://github.com/pglombardo/PasswordPusher/discussions/276 | ||
enable_logins: false | ||
|
||
# The domain (without protocol) where this instance is hosted | ||
|
@@ -36,6 +37,10 @@ mail: | |
# See config/initializers/devise.rb where this is used | ||
# mailer_sender: '"Password Pusher" <[email protected]>' | ||
|
||
# List of supported languages indexed by language code. This is used | ||
# to build the in application language menu. | ||
# | ||
# <language code>: '<language name>' | ||
language_codes: | ||
ca: 'Català' | ||
da: 'Dansk' | ||
|
@@ -51,3 +56,9 @@ language_codes: | |
sr: 'Српски' | ||
sv: 'Svenska' | ||
|
||
# The default language for the application. This must be one of the | ||
# valid/supported language codes from the list above. | ||
# Example: default_locale: :es | ||
# Environment Variable Override: PWP__DEFAULT_LOCALE='es' | ||
default_locale: :en | ||
|