Interface RealmLocalizationResource
public interface RealmLocalizationResource
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createOrUpdateRealmLocalizationTexts
(String locale, Map<String, String> localizationTexts) void
deleteRealmLocalizationText
(String locale, String key) void
deleteRealmLocalizationTexts
(String locale) getRealmLocalizationText
(String locale, String key) getRealmLocalizationTexts
(String locale) Get the localization texts for the given locale.getRealmLocalizationTexts
(String locale, Boolean useRealmDefaultLocaleFallback) Deprecated.void
saveRealmLocalizationText
(String locale, String key, String text)
-
Method Details
-
getRealmSpecificLocales
-
getRealmLocalizationTexts
@Path("{locale}") @GET @Produces("application/json") Map<String,String> getRealmLocalizationTexts(@PathParam("locale") String locale) Get the localization texts for the given locale.- Parameters:
locale
- the locale- Returns:
- the localization texts
-
getRealmLocalizationTexts
@Deprecated @Path("{locale}") @GET @Produces("application/json") Map<String,String> getRealmLocalizationTexts(@PathParam("locale") String locale, @QueryParam("useRealmDefaultLocaleFallback") Boolean useRealmDefaultLocaleFallback) Deprecated.usegetRealmLocalizationTexts(String)
, in order to retrieve localization texts without fallbacks. If you need fallbacks, call the endpoint multiple time with all the relevant locales (e.g. "de" in case of "de-CH") - the realm default locale is NOT the only fallback to be considered.DEPRECATED - Get the localization texts for the given locale.- Parameters:
locale
- the localeuseRealmDefaultLocaleFallback
- whether the localization texts for the realm default locale should be used as fallbacks in the result- Returns:
- the localization texts
-
getRealmLocalizationText
-
deleteRealmLocalizationTexts
-
deleteRealmLocalizationText
-
saveRealmLocalizationText
-
createOrUpdateRealmLocalizationTexts
-
getRealmLocalizationTexts(String)
, in order to retrieve localization texts without fallbacks.