Skip to content

Commit

Permalink
Support liff.i18n.setLang API
Browse files Browse the repository at this point in the history
  • Loading branch information
cola119 committed Sep 13, 2023
1 parent c0efc43 commit f4d474b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,18 @@ function App() {
return await liff.permanentLink.createUrlBy(url)
}}
/>
<Snippet
apiName="liff.i18n.setLang"
version="2.21.0"
docUrl="https://developers.line.biz/ja/reference/liff/#i18n-set-lang"
needRequestPayload={true}
skipAutoRun={true}
hideResponse={true}
defaultRequestPayload={'en'}
runner={async (lang) => {
return await liff.i18n.setLang(lang)
}}
/>
</div>
</FilterContext.Provider>
)
Expand Down

0 comments on commit f4d474b

Please sign in to comment.