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

#F Get company name from custom locales #782

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Conversation

EgorovEI
Copy link
Contributor

In this commit, support for adding a company name from custom locales is added.
However, if the integrator has set this name through the theme, that one is used
instead of the custom locales. Also, in case the custom locale doesn't have a
string for the company name, but the integrator has specified a company name
through the configuration of the SDK, then that is used. Finally, if neither of
the previous possibilies have been used, then the local fallbacks are used.
Together, the first and the last point mean that there are no backwards
compatibility issues, as if the integrator hasn't set any name, still the
local fallback will be displayed, which is "CompanyName". If they have, then
that is used immediately without caring about configuration or custom locales.

MOB-2686

@EgorovEI
Copy link
Contributor Author

!squash

@EgorovEI
Copy link
Contributor Author

!squash

@EgorovEI EgorovEI requested a review from yurii-glia September 25, 2023 12:47
@EgorovEI EgorovEI changed the title Get company name from custom locales #F Get company name from custom locales Sep 25, 2023
@EgorovEI
Copy link
Contributor Author

!squash

In this commit, support for adding a company name from custom locales is added.
However, if the integrator has set this name through the theme, that one is used
instead of the custom locales. Also, in case the custom locale doesn't have a
string for the company name, but the integrator has specified a company name
through the configuration of the SDK, then that is used. Finally, if neither of
the previous possibilies have been used, then the local fallbacks are used.
Together, the first and the last point mean that there are no backwards
compatibility issues, as if the integrator hasn't set any name, still the
local fallback will be displayed, which is "CompanyName". If they have, then
that is used immediately without caring about configuration or custom locales.

MOB-2686
@EgorovEI EgorovEI merged commit 8bb8b44 into custom-locales Sep 26, 2023
1 check passed
@EgorovEI EgorovEI deleted the MOB-2686 branch September 26, 2023 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants