<
From version < 81.1 >
edited by slauriere
on 2021/02/15
To version < 82.1 >
edited by Manuel Leduc
on 2021/04/26
>
Change comment: Adding the localizations endpoint

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.slauriere
1 +XWiki.mleduc
Content
... ... @@ -989,6 +989,26 @@
989 989  *** 401: If the user is not authorized (i.e. doesn't have Programming Rights)
990 990  *** 500: Failing jobs with ##async=false## return an error 500 (Since 9.7RC1)
991 991  
992 +== Localization resources ==
993 +
994 +For more details see the [[Localization Module documentation>>extensions:Extension.Localization.WebHome]].
995 +
996 +{{version since="13.3RC1"}}
997 +=== /wikis/{wikiName}/localization/translations[?locale~=l&prefix~=p[&key~=k]*] ===
998 +
999 +* **HTTP Method**: GET
1000 +** **Media Types:** ##application/xml## or ##application/json##
1001 +** **Description: **The list of translations of the requested keys in a given locale
1002 +** **Query Parameters:**
1003 +*** **locale:** (optional) the locale of the returned translation, if missing the locale is resolved from the context
1004 +*** **prefix:** (optional) a common prefix concatenated to all the provided keys.
1005 +*** **key:** (multiple) a list of translation keys
1006 +** **Status Code:**
1007 +*** 200: if the request was successful
1008 +** **Response:**
1009 +*** a list of translation objects, each containing the translation key (concatenated with the prefix) and the resolved raw sources (the translation values without the parameters resolved).
1010 +{{/version}}
1011 +
992 992  == Other resources ==
993 993  
994 994  === /wikis/{wikiName}/modifications[?start~=offset&number~=n&date~=t] ===

Get Connected