Skip to content

Fix uiLangUpdate for workaround of shi18ny/parmesan clash #33

@lenafm

Description

@lenafm

Without the updateSelectLangInput function in langSelector (which was removed to temporarily solve the shi18ny/parmesan clash which was blocking modals from shinypanels to open) the translations of text directly in the UI of an app doesn't work, because input$shi18ny_ui_classes isn't created on time by useShi18ny.

There is a workaround for this by adding a shinyjs::delay to the observeEvent in the apps, in which the UI texts are translated (as in code below). This should probably work without the delay function.

  observeEvent(lang(),{
    shinyjs::delay(500, uiLangUpdate(input$shi18ny_ui_classes, lang()))
  })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions