However, local testing has shown that if localised screenshot URLs are provided in the translations dict when publishing to the index, then they are returned as expected:
Looking at the myapps code, it looks like the `ClickPackage` model only defines `name`, `description`, `keywords`, `terms_of_service`, `support_url`, and `website` as multilingual fields, so I'm re-assigning the bug there.
The localised screenshot URLs are not in the Index:
``` /search. apps.ubuntu. com/api/ v1/search? q=name: uber-web. saviq&fields= translations' | jq . :package" : [ /search. apps.ubuntu. com/api/ v1/package/ uber-web. saviq"
"translations" : {
"keywords" : [
"uber",
"taxi",
"taksówka" ,
"taksowka" ,
"transport"
"descripti on": "Mobilna aplikacja Uber.\r\ n\r\nUWAGA: \r\nJeśli podczas zamawiania przejazdu aplikacja poinformuje, że używasz zbyt starej wersji, musisz zgłosić ten problem na <email address hidden>, oni aktywują dostęp do http:// m.uber. com/ dla twojego konta.",
"title" : "Uber Mobile" /wiki.ubuntu. com/AppStore/ Interfaces/ ClickPackageInd ex#reltype_{rel}",
"templated" : true /search. apps.ubuntu. com/api/ v1/search? q=name% 3Auber- web.saviq& fields= translations& page=1" /search. apps.ubuntu. com/api/ v1/search? q=name% 3Auber- web.saviq& fields= translations& page=1" /search. apps.ubuntu. com/api/ v1/search? q=name% 3Auber- web.saviq& fields= translations& page=1"
$ curl -s 'https:/
{
"_embedded": {
"clickindex
{
"_links": {
"self": {
"href": "https:/
}
},
"pl": {
],
}
}
}
]
},
"_links": {
"curies": [
{
"href": "https:/
"name": "clickindex",
}
],
"self": {
"href": "https:/
},
"last": {
"href": "https:/
},
"first": {
"href": "https:/
}
}
}
```
However, local testing has shown that if localised screenshot URLs are provided in the translations dict when publishing to the index, then they are returned as expected:
``` cpi-trusty. lxc:8000/ api/v1/ search? q=name: ubuntu- hangups. timsueberkrueb& fields= screenshot_ urls,translatio ns' -H 'Accept-Language: en' -s | jq . :package" : [ localhost: 8000/api/ v1/package/ ubuntu- hangups. timsueberkrueb"
"translations" : {
"screensho t_urls" : [ localhost/ dummy.png", localhost/ dummy2. png"
"screenshot_ urls": [ /myapps. developer. ubuntu. com/site_ media/appmedia/ 2015/08/ screenshot- 02.png", /myapps. developer. ubuntu. com/site_ media/appmedia/ 2015/08/ screenshot- 03.png", /myapps. developer. ubuntu. com/site_ media/appmedia/ 2015/09/ screenshot20150 906_142917143. png", /myapps. developer. ubuntu. com/site_ media/appmedia/ 2015/09/ screenshot20150 906_143014836. png", /myapps. developer. ubuntu. com/site_ media/appmedia/ 2015/09/ screenshot20150 906_143112530. png", /myapps. developer. ubuntu. com/site_ media/appmedia/ 2015/09/ screenshot20150 906_143201841. png", /myapps. developer. ubuntu. com/site_ media/appmedia/ 2015/09/ screenshot20150 906_143214054. png", /myapps. developer. ubuntu. com/site_ media/appmedia/ 2015/09/ screenshot20150 906_143221620. png", /myapps. developer. ubuntu. com/site_ media/appmedia/ 2015/09/ screenshot20150 906_143352523. png", /myapps. developer. ubuntu. com/site_ media/appmedia/ 2015/09/ screenshot20150 906_143417862. png" /wiki.ubuntu. com/AppStore/ Interfaces/ ClickPackageInd ex#reltype_{rel}",
"templated" : true localhost: 8000/api/ v1/search? q=name% 3Aubuntu- hangups. timsueberkrueb& fields= screenshot_ urls%2Ctranslat ions&page= 1" localhost: 8000/api/ v1/search? q=name% 3Aubuntu- hangups. timsueberkrueb& fields= screenshot_ urls%2Ctranslat ions&page= 1" localhost: 8000/api/ v1/search? q=name% 3Aubuntu- hangups. timsueberkrueb& fields= screenshot_ urls%2Ctranslat ions&page= 1"
$ curl 'http://
{
"_embedded": {
"clickindex
{
"_links": {
"self": {
"href": "http://
}
},
"pl": {
"http://
"http://
]
}
},
"https:/
"https:/
"https:/
"https:/
"https:/
"https:/
"https:/
"https:/
"https:/
"https:/
]
}
]
},
"_links": {
"curies": [
{
"href": "https:/
"name": "clickindex",
}
],
"self": {
"href": "http://
},
"last": {
"href": "http://
},
"first": {
"href": "http://
}
}
}
$ curl 'http:// cpi-trusty. lxc:8000/ api/v1/ search? q=name: ubuntu- hangups. timsueberkrueb& fields= screenshot_ urls,translatio ns' -H 'Accept-Language: pl' -s | jq . :package" : [ localhost: 8000/api/ v1/package/ ubuntu- hangups. timsueberkrueb"
"translations" : {
"screensho t_urls" : [ localhost/ dummy.png", localhost/ dummy2. png"
"screenshot_ urls": [ localhost/ dummy.png", localhost/ dummy2. png" /wiki.ubuntu. com/AppStore/ Interfaces/ ClickPackageInd ex#reltype_{rel}",
"templated" : true localhost: 8000/api/ v1/search? q=name% 3Aubuntu- hangups. timsueberkrueb& fields= screenshot_ urls%2Ctranslat ions&page= 1" localhost: 8000/api/ v1/search? q=name% 3Aubuntu- hangups. timsueberkrueb& fields= screenshot_ urls%2Ctranslat ions&page= 1" localhost: 8000/api/ v1/search? q=name% 3Aubuntu- hangups. timsueberkrueb& fields= screenshot_ urls%2Ctranslat ions&page= 1"
{
"_embedded": {
"clickindex
{
"_links": {
"self": {
"href": "http://
}
},
"pl": {
"http://
"http://
]
}
},
"http://
"http://
]
}
]
},
"_links": {
"curies": [
{
"href": "https:/
"name": "clickindex",
}
],
"self": {
"href": "http://
},
"last": {
"href": "http://
},
"first": {
"href": "http://
}
}
}
```
Looking at the myapps code, it looks like the `ClickPackage` model only defines `name`, `description`, `keywords`, `terms_of_service`, `support_url`, and `website` as multilingual fields, so I'm re-assigning the bug there.