pariyatti / mobile-app

The Pariyatti mobile app
https://pariyatti.app/
GNU Affero General Public License v3.0
8 stars 11 forks source link

Apply i18n to card titles #133

Closed deobald closed 1 year ago

deobald commented 1 year ago

The current card titles are rendered based on the title field of the JSON returned by Kosa. This doesn't make sense for Dohas, Words of the Buddha, or Daily Pali Word ... they're all auto-generated, so there's never any need to customize the title.

Instead, we can use a string internal to the mobile app, which will allow i18n to render it as well.

NOTE: Share strings use simplified text and share filenames strip out both extended ASCII characters (the ā in Pāli, for example) and filename-unfriendly chars like spaces and periods.

deobald commented 1 year ago

Closed with: https://github.com/pariyatti/mobile-app/commit/d2a5c414ff3dc4944820f4ac2fd398f4f8aa3e9b