We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1faffe3 commit 2d5eed9Copy full SHA for 2d5eed9
tests/integration/multi_page/test_pages_layout.py
@@ -202,9 +202,11 @@ def get_routing_inputs_app():
202
# Page with a layout function, should see the routing callback inputs
203
# as keyword arguments
204
def layout1(hash: str = None, language: str = "en", **kwargs):
205
- if language == "fr":
206
- return html.Div(f"Le hash dit: {hash}", id="contents")
207
- return html.Div(f"Hash says: {hash}", id="contents")
+ translations = {
+ "en": "Hash says: {}",
+ "fr": "Le hash dit: {}",
208
+ }
209
+ return html.Div(translations[language].format(hash), id="contents")
210
211
dash.register_page(
212
"function_layout",
0 commit comments