All files / app/locale LanguageWindow.ts

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10            145x 9x    
import { LanguageConfig } from '@bigcommerce/checkout-sdk';
 
export default interface LanguageWindow {
    language: Pick<LanguageConfig, 'locale' | 'locales' | 'translations'>;
}
 
export function isLanguageWindow(window: Window | LanguageWindow): window is LanguageWindow {
    return 'language' in window && typeof window.language === 'object';
}