Skip to content

Commit

Permalink
Merge pull request #25 from line/add-setlang
Browse files Browse the repository at this point in the history
Support `liff.i18n.setLang` API
  • Loading branch information
cola119 authored Sep 19, 2023
2 parents c0efc43 + f4d474b commit acf1e62
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

1 comment on commit acf1e62

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.