Closed davidknezic closed 7 years ago
This pr adds i18n support and does it in a very similar way as it was done in the javascript-kit before.
lang
alternate_languages
Form.lang(String lang)
Api
Form.SearchForm Api.query(String lang, String q)
Form.SearchForm Api.query(String lang, Predicate... predicates)
Document Api.queryFirst(Predicate p, String lang, String ref)
Document Api.getByID(String documentId, String lang, String ref)
This change should not break the existing api.
https://github.com/prismicio/java-kit/pull/45
This pr adds i18n support and does it in a very similar way as it was done in the javascript-kit before.
lang
andalternate_languages
fields are parsed and savedForm.lang(String lang)
method allows you to filter for a languageApi
query methods are addedForm.SearchForm Api.query(String lang, String q)
Form.SearchForm Api.query(String lang, Predicate... predicates)
Document Api.queryFirst(Predicate p, String lang, String ref)
Document Api.getByID(String documentId, String lang, String ref)
This change should not break the existing api.