Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
API
(view source)
Revision as of 12:14, 2 February 2017
17 bytes added
,
12:14, 2 February 2017
→Countries and Language of the Response
Line 100:
Line 100:
# https://ch.openfoodfacts.org --> cc = ch (Switzerland), lc = de (German, set as main language for Switzerland)
# https://ch.openfoodfacts.org --> cc = ch (Switzerland), lc = de (German, set as main language for Switzerland)
# https://ch-fr.openfoodfacts.org --> cc = ch, lc = fr (French)
# https://ch-fr.openfoodfacts.org --> cc = ch, lc = fr (French)
−
==== Over-riding
country
code and interface
language
using cc and lc parameters ====
+
==== Over-riding
Country
code
(cc)
and
Language of the
interface
(lc)
using cc and lc parameters ====
If you pass ?cc=us and/or &lc=it, it will set the country to US and the language to Italian
If you pass ?cc=us and/or &lc=it, it will set the country to US and the language to Italian
-> if you just pass cc, the lc will be the one set in the subdomain.
-> if you just pass cc, the lc will be the one set in the subdomain.
RUBprePPqbKwLOdPC6XcdOwuf5kr0joEUt7PoueI9o9kK58wwBVFrOKsyi3OGJaA
59
edits
Navigation menu
Personal tools
English
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Log in
Open Food Facts galaxy
📍Where am I?
🍊Open Food Facts website
Open Food Facts wiki
Main page
Recent changes
Random page
🧴 Open Beauty Facts wiki
Main page
Deep dive per topic
All topics
Whole wiki
Help about MediaWiki
Icons in the wiki
Tools
Special pages
Printable version
Admins
Edit sidebar
Styling
Replace text
Special Pages