import { HomeAssistant } from "./types" ; export function computeRTL ( hass ) { const lang = hass ?. locale ?. language || "en" ; if ( hass . translationMetadata . translations [ lang ] ) { return hass . translationMetadata . translations [ lang ] . isRTL || false ; } return false ; } export function computeRTLDirection ( hass ) { return computeRTL ( hass ) ? "rtl" : "ltr" ; }