KO
|
EN
gitlite โ search
Search
#python
#php
#machine-learning
#golang
#deep-learning
#csharp
#dotnet
#javascript
#hacktoberfest
#go
#react
#rest-api
cramkle
โ 30
Open GitHub โ
Web-based flashcard studying app
Download README (.md)
Explore Similar Repositories
bamtocov
:
๐ coverage extraction from BAM/CRAM files, supporting targets ๐ ย
crambda
:
Crystal AWS Lambda custom runtime
CramBit
:
A Solidity library designed to cram as many arbitrary values into as small a space as possible.
juri
:
Crams JSON objects into tiny, URL-safe strings
CACHING-efficient-data-crammer
:
No description available.
// repository documentation
Was this content helpful?
โ 0
(0 ratings)
Select Rating:
โ
โ
โ
โ
โ
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
cramkle
?
Download (.md)
# Cramkle  Cramkle is a *web-based* flashcard studying app that helps you organize your study using a [spaced repetition](https://en.wikipedia.org/wiki/Spaced_repetition) algorithm, used in many flashcard apps and learning websites, such as [Anki](https://apps.ankiweb.net/) and [SuperMemo](https://www.supermemo.com/). ## Getting started If you want to access the Cloud version of Cramkle, go to [www.cramkle.com](https://www.cramkle.com/), else you can follow the instructions below. ```sh git clone https://github.com/cramkle/cramkle cd cramkle # Install dependencies yarn # Compile messages translations yarn compile ``` If you want to run this project locally, you will also need to setup and run [Hipocampo](https://github.com/cramkle/hipocampo), which is our GraphQL API. ## Development Now that you've setup all the dependencies for both this project and Hipocampo, you can run the local server with the command below. ```sh yarn dev ``` ## Adding and updating translations This project uses [`lingui-js`](https://github.com/lingui/js-lingui) for i18n. In case you need to translate something that isn't yet translated, or you are adding some new texts, you'll need to use one of the macros from the lingui package. Lingui comes with several macros to handle all sorts of cases of language translation, but the most common one is just plain text. For simple texts, you can use either the `Trans` macro or the `t` macro (in conjunction with the `useLingui` hook). Now, to translate something you can just wrap it up with one of lingui macros, like one of the two above: ```tsx import { Trans, t } from '@lingui/macro' import { useLingui } from '@lingui/react' import React from 'react' const ComponentWithTrans = () => { return ( <span> <Trans>My translated text</Trans> </span> ) } const ComponentWithUseLingui = () => { const { i18n } = useLingui() return ( <span> {i18n._(t`My translated text`)} </span> ) } ``` After adding the macro to the component like in the example above, you'll need to run `yarn extract` so lingui an extract those texts into PO files (under `./src/locales/`). Then, edit the translation in the corresponding files and run `yarn compile`. You can see more info and other examples on the [Lingui docs](https://lingui.js.org/).