Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): svelte-i18n formatting does not trigger inside single quotes #16781

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eliottness
Copy link

@eliottness eliottness commented Mar 10, 2025

Description

This PR fixes a formatting issue in the setting description for the mobile redirect uri override in the OAuth Administration panel.

Fixes #16779

How Has This Been Tested?

  • Ran the web app locally and saw the fix

Screenshots (if appropriate)

Previously:
Image

Now:
image

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • All code in src/services/ uses repositories implementations for database calls, filesystem operations, etc.
  • All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services/)

Sorry, something went wrong.

i18n/en.json Outdated
@@ -187,7 +187,7 @@
"oauth_issuer_url": "Issuer URL",
"oauth_mobile_redirect_uri": "Mobile redirect URI",
"oauth_mobile_redirect_uri_override": "Mobile redirect URI override",
"oauth_mobile_redirect_uri_override_description": "Enable when OAuth provider does not allow a mobile URI, like '{callback}'",
"oauth_mobile_redirect_uri_override_description": "Enable when OAuth provider does not allow a mobile URI, like \"{callback}\"",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to preserve the single quotes in the output message, you can use two of them to escape them.

Suggested change
"oauth_mobile_redirect_uri_override_description": "Enable when OAuth provider does not allow a mobile URI, like \"{callback}\"",
"oauth_mobile_redirect_uri_override_description": "Enable when OAuth provider does not allow a mobile URI, like ''{callback}''",

https://formatjs.github.io/docs/core-concepts/icu-syntax#quoting--escaping

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Snowknight26 Applied in 361e591 🙏

Signed-off-by: Eliott Bouhana <eliott.bouhana@datadoghq.com>
@eliottness eliottness requested a review from Snowknight26 March 12, 2025 10:51
@eliottness eliottness marked this pull request as ready for review March 12, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

svelte-i18n formatting does not trigger inside single quotes on oauth redirect uri override button
3 participants