language-flash

1.0.6 • Public • Published

Twitter thread describing the project

I built this app for studying Mandarin vocab words, but it can easily be tailored to any other language you're able to get data for

just import it and pass your data through props:

<script>
	import LanguageFlash from 'language-flash'
  // data should be an array of objects with the following structure: 
  // { word: '', wordModeTwo: '', wordModeThree: '', meaning: '' }
	const promise = fetch('/some/data').then(res => res.json()) 
</script>


{#await promise}
	<LanguageFlash />
{:then vocabData}
	<LanguageFlash vocabData={vocabData} />
{:catch error}
	<p style="color: red">{error.message}</p>
{/await}

Readme

Keywords

none

Package Sidebar

Install

npm i language-flash

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

10.6 kB

Total Files

5

Last publish

Collaborators

  • spope5