Skip to content

fix(auth): replace hardcoded loading state strings with translatable string resources#2339

Open
demolaf wants to merge 2 commits into
version-10.0.0-beta03from
feat/add-localized-strings-states
Open

fix(auth): replace hardcoded loading state strings with translatable string resources#2339
demolaf wants to merge 2 commits into
version-10.0.0-beta03from
feat/add-localized-strings-states

Conversation

@demolaf

@demolaf demolaf commented Jun 24, 2026

Copy link
Copy Markdown
Member

Closes #2338 .

All AuthState.Loading messages emitted during auth operations (sign-in, sign-out, delete, phone, email, etc.) were hardcoded English strings. This replaces every instance with a string resource lookup via Context.getString(R.string.fui_loading_*), making them overridable and translatable.

@demolaf demolaf force-pushed the feat/add-localized-strings-states branch from f517f53 to b6694cb Compare June 24, 2026 15:27
@firebase firebase deleted a comment from gemini-code-assist Bot Jun 24, 2026
@demolaf

demolaf commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

/gemini review

@demolaf demolaf changed the title Feat/add localized strings for states fix(auth): replace hardcoded loading state strings with translatable string resources Jun 24, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request replaces hardcoded English loading messages with localized string resources across various authentication providers and operations (such as signing in, signing out, and deleting accounts). It also introduces new loading state properties to AuthUIStringProvider and its default implementation, along with corresponding unit tests. The review feedback suggests utilizing the custom stringProvider from the available config object instead of directly calling context.getString(...) or app.applicationContext.getString(...) in several provider helper files, ensuring that any user-supplied custom string provider is properly respected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant