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

add loadOnlyTranslated (optional) #13

Closed
wants to merge 2 commits into from
Closed

Conversation

ibsz
Copy link

@ibsz ibsz commented Oct 29, 2021

No description provided.

Gabor Ibolya and others added 2 commits October 29, 2021 11:02
loadOnlyTranslated (optional) - true if ignore untranslated items to load as empty strings
@@ -155,7 +156,6 @@ public void reload(Locale... locales) {
translations = new HashMap<>(loadTranslation(new Locale(locale.getLanguage())));

if (StringUtils.hasText(locale.getCountry())) {
Map<String, String> countrySpecific = loadTranslation(locale);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove this? This loads the country-specific translations and overrides the ones with only language

@derkoe
Copy link
Contributor

derkoe commented Nov 19, 2021

Paging is not implemented - /units provides a "next" element for paging.

@derkoe
Copy link
Contributor

derkoe commented Nov 26, 2021

See #14

@derkoe derkoe closed this Nov 26, 2021
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.

None yet

2 participants