Skip to content

Commit

Permalink
add public getter for field existingLocales in WeblateMessageSource (#32
Browse files Browse the repository at this point in the history
)

* add public getter for field existingLocales in WeblateMessageSource
* Fix compile error

Co-authored-by: Christian Köberl <[email protected]>
  • Loading branch information
Robert-HK and derkoe authored Mar 30, 2022
1 parent 953e70d commit db54c9f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ public void setQuery(String query) {
this.query = query;
}

/**
* @return all existing locales of the configured weblate component
*/
public Set<Locale> getExistingLocales() {
return this.existingLocales.keySet();
}

/**
* Set the {@link RestTemplate} to use for getting data from Weblate REST API.
* <p>
Expand Down

0 comments on commit db54c9f

Please sign in to comment.