Live App in Right-to-Left Language

Hi there,

Has anyone found a way to switch a live app to an RTL language (like Arabic) ? This needs to switch all pages to be right to left.

Hi @NourFayek02147, I’m also looking for a way to do it. Have you found a way to change the live app to Right-to-Left?

You can add this to your Custom JavaScript inside the Knack Builder:

/* Make app Right-To-Left */
$(document).on('knack-scene-render.any', function(event, scene) {
  const direction = $('html').attr('dir')
  if (direction !== 'rtl') {
    $('html').attr('dir', 'rtl')
  }
})

Thanks,
Ian
Knack Pros