{"action":"closed","issue":{"url":"https://api.github.com/repos/rstudio/shiny/issues/741","labels_url":"https://api.github.com/repos/rstudio/shiny/issues/741/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/shiny/issues/741/comments","events_url":"https://api.github.com/repos/rstudio/shiny/issues/741/events","html_url":"https://github.com/rstudio/shiny/issues/741","id":58125502,"number":741,"title":"updateSelectInput does not reactively change label?","user":{"login":"yyz1989","id":7029943,"avatar_url":"https://avatars.githubusercontent.com/u/7029943?v=3","gravatar_id":"","url":"https://api.github.com/users/yyz1989","html_url":"https://github.com/yyz1989","followers_url":"https://api.github.com/users/yyz1989/followers","following_url":"https://api.github.com/users/yyz1989/following{/other_user}","gists_url":"https://api.github.com/users/yyz1989/gists{/gist_id}","starred_url":"https://api.github.com/users/yyz1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyz1989/subscriptions","organizations_url":"https://api.github.com/users/yyz1989/orgs","repos_url":"https://api.github.com/users/yyz1989/repos","events_url":"https://api.github.com/users/yyz1989/events{/privacy}","received_events_url":"https://api.github.com/users/yyz1989/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-18T20:45:58Z","updated_at":"2015-02-18T21:00:25Z","closed_at":"2015-02-18T21:00:25Z","body":"Hi there,\r\n\r\nI am using Shiny to visualize some statistics. The UI has to be in multiple languages such that the entire context switches as the language selection is triggered. So this is what I am doing:\r\n\r\nI have defined some named lists to store the texts in corresponding languages and I have defined the following select input and slider input fields in ui.R with initial values in a default language:\r\n```\r\nselectInput(\"clsLev\", clsLevLabel$nl, levList$nl, levList$nl[[3]]),\r\nsliderInput(\"numRes\", numResLabel$nl, min = 10, max = 50, value = 20, step = 5),\r\n```\r\nLanguage selection is also controlled by a select input field:\r\n```\r\nselectInput(\"lang\", langLabel$nl, list(\"en\", \"nl\", \"fr\", \"de\"), \"nl\")\r\n```\r\nAccordingly, in server.R I defined an observer to update the two input fields when \"input$lang\" changes, as follows:\r\n```\r\nobserve({\r\n    updateSelectInput(session, \"clsLev\", label = clsLevLabel[[input$lang]], choices = levList[[input$lang]])\r\n    updateSliderInput(session, \"numRes\", label = numResLabel[[input$lang]])\r\n  })\r\n```\r\nI think I am doing in a right way, however it is very strange that it works only partially: the label of the slider input and the choices of the select input change accordingly, but the label of the select input remains unchanged.\r\n\r\nIs there anyone who has also encountered such kind of issue or am I doing it in a wrong way? Any comment or suggestion will be a great help for me. Thank you in advance.\r\n\r\nRegards,\r\nYang"}}