Keycloak 国际化之动态修改不同语言

Keycloak About 1,253 words

修改步骤

  1. 选择Realm
  2. 点击左侧菜单Realm Settings
  3. 顶部Tab页选择Localization
  4. Supported locales中增加中文(中国)
  5. 下方Edit message bundles中选择中文(中国)
  6. 点击Add message bundle添加对应的KeyValue
  7. 对应的Key可以从GitHub中找到

部分键值示例

doLogIn=Sign In
doRegister=Register
doCancel=Cancel
doSubmit=Submit
doBack=Back
doYes=Yes
doNo=No
doContinue=Continue
doIgnore=Ignore
doAccept=Accept
doDecline=Decline
doForgotPassword=Forgot Password?
doClickHere=Click here
doImpersonate=Impersonate
doTryAgain=Try again
doTryAnotherWay=Try Another Way
doConfirmDelete=Confirm deletion
errorDeletingAccount=Error happened while deleting account
deletingAccountForbidden=You do not have enough permissions to delete your own account, contact admin.
kerberosNotConfigured=Kerberos Not Configured
kerberosNotConfiguredTitle=Kerberos Not Configured
bypassKerberosDetail=Either you are not logged in by Kerberos or your browser is not set up for Kerberos login.  Please click continue to login in through other means
kerberosNotSetUp=Kerberos is not set up.  You cannot login.
registerTitle=Register
loginAccountTitle=Sign in to your account

更多变量

https://github.com/keycloak/keycloak/tree/main/themes/src/main/resources/theme/base/login/messages

https://github.com/keycloak/keycloak/tree/main/themes/src/main/resources/theme/base

Views: 979 · Posted: 2023-11-23

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh