{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-cashier/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Language","siteUrl":"https://docs.omno.com"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"language","__idx":0},"children":["Language"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Set the Cashier language at runtime by posting a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SET_LANGUAGE"]}," message. The SDK forwards it to the Cashier iframe — whether you post it before or after ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["open()"]},"."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"window.postMessage({ type: \"SET_LANGUAGE\", data: { language: \"tr\" } }, \"*\");\nwindow.postMessage({ type: \"SET_LANGUAGE\", data: { language: \"en\" } }, \"*\");\nwindow.postMessage({ type: \"SET_LANGUAGE\", data: { language: \"de\" } }, \"*\");\n","lang":"typescript"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Posted ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["before"]}," opening: stored and sent once the Cashier loads."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Posted ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["after"]}," opening: forwarded immediately."]}]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ℹ️ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Note:"]}," Use a language code agreed with your Omno integration team — it must be one the Cashier supports."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"build-it-","__idx":1},"children":["Build it →"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/cashier/sdk/mobile-and-layout"},"children":["Mobile & layout"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/cashier/sdk/configuration"},"children":["Configuration"]}]}]}]},"headings":[{"value":"Language","id":"language","depth":1},{"value":"Build it →","id":"build-it-","depth":2}],"frontmatter":{"title":"Language","description":"Set the Omno Cashier language at runtime with a SET_LANGUAGE postMessage, before or after open().","seo":{"title":"Language"}},"lastModified":"2026-11-06T11:46:00.425Z","pagePropGetterError":{"message":"","name":""}},"slug":"/cashier/sdk/language","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}