about summary refs log tree commit diff
path: root/src/components/hooks/dates.ts
Commit message (Collapse)AuthorAgeFilesLines
* Port post embeds to new arch (#7408)Eric Bailey2025-06-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Direct port of embeds to new arch (cherry picked from commit cc3fa1f6cea396dd9222486c633a508bfee1ecd6) * Re-org * Split out ListEmbed and FeedEmbed * Split out ImageEmbed * DRY up a bit * Port over ExternalLinkEmbed * Port over Player and Gif embeds * Migrate ComposerReplyTo * Replace other usages of old post-embeds * Migrate view contexts * Copy pasta VideoEmbed * Copy pasta GifEmbed * Swap in new file location * Clean up * Fix up native * Add back in correct moderation on List and Feed embeds * Format * Prettier * delete old video utils * move bandwidth-estimate.ts * Remove log * Add LazyQuoteEmbed for composer use * Clean up unused things * Remove remaining items * Prettier * Fix imports * Handle nested quotes same as prod * Add back silenced error handling * Fix lint --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Add language: European Portuguese (`pt-PT`) (#8375)surfdude292025-05-301-0/+2
| | | | | | | | | | | | | | | | | | | * Update app.config.js * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts * Create messages.po * prettier
* Add language: Frisian (#8214)surfdude292025-05-091-0/+2
| | | | | | | | | | | | | | | | | * Update app.config.js * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts * Create messages.po
* Add language: Esperanto (#7863)surfdude292025-03-051-0/+2
| | | | | | | | | | | | | | | | | * Create messages.po * Update app.config.js * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts
* Add language: Scottish Gaelic (#7864)surfdude292025-03-051-0/+2
| | | | | | | | | | | | | | | | | * Create messages.po * Update app.config.js * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts
* Add language: Welsh (#7866)surfdude292025-03-051-0/+2
| | | | | | | | | | | | | | | | | * Create messages.po * Update app.config.js * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts
* Add language: Interlingua (#7715)Paul Frazee2025-02-111-0/+1
| | | | | * Add language: Interlingua * Add ia entry in dates
* Add Danish localization (#7220)Christian Schmidt2025-01-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Danish localization * Fix * Update src/locale/locales/da/messages.po Co-authored-by: Frudrax Cheng <i@cynosura.one> * Typo * Inconsistent translation of "draft" * Do not use "post" as verb * Change "post"/"repost" to "opslag"/"videredeling" * Fix "About" * Fix * Add to iOS config * Sort alphabetically * Typo fixes by @kseistrup * Fix gender of "opslag" * Plural * "videredeling" > "deling" * Be specific that ÆØÅ is not allowed * Add new strings from main --------- Co-authored-by: Frudrax Cheng <i@cynosura.one>
* Add Swedish localization (#7232)nilaallj2025-01-241-0/+2
| | | | | | | | | | | | | * Adding Swedish translation * Fixes and improvements * Fixes and improvements * Fixed inconsistencies + some other improvements * Made some improvements, added missing translations and added Swedish to app.config.js * Force push to resolve conflicts in messages.po
* Add Basque language ('eu') (#7479)REALSOULMAN2025-01-241-0/+2
| | | | | * Add Basque language * Contributor's changes
* Add Greek Language ('el') Support and Internationalization (#6677)Yiannis Mertzanis2024-12-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Add Greek language support to the application * Add support for Greek language in date handling and tests * Update Greek locale file with translator and team information * Add support for Greek language in date handling and tests * Add support for Greek language in app configuration, and updated translation from the reviewers' comments * Update src/locale/i18n.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/i18n.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Update Chinese & Cantonese localization (#7235)Frudrax Cheng2024-12-311-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * Update translates from crowdin * Convert language codes from RFC-1766 to RFC-4646 * Update translates from crowdin * Update deviceLocales.ts * Revert 'changes zh-HK to yue' * Fix zh-HK messages.po * Revert 'en/messages.po' * Update deviceLocales.ts * Revert code comments * Update translates from crowdin * zh-TW: Improved translations
* Fix Nepali language code (#7265)Minseo Lee2024-12-241-1/+1
| | | | | * Replace `np` with `ne` * Reorder
* Nepali Translation (divyaswormakai's reviewed & some changes) (#7033)Ankit Bhandari2024-12-181-0/+1
| | | | | | | | | | | | | | | | | * feat: prepare necesaary files * fix: message file for nepali translation * feat: language file update * feat: add missing pieces * feat: one and other updates * additional changes --------- Co-authored-by: Divyaswor Makai <makaidivya@gmail.com>
* Add Khmer Localization (#6914)roth2024-12-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * add khmer language * update translate * update translate * add missing localization key * update khmer wording * update khmer wording * add missing translate * add missing translate * chore: add khmer local date-time format * Update src/locale/i18n.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Romanian localization (#6456)Claudiu Cristea2024-12-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Empty * First pass * More colloquial Romanian * Add Romanian lanaguage * Romanian specfic plural with 3 variants * Adjustments * Chat > Conversație * Keep code alphabetical order * Update messages.po * Add 'ro' to app.config.js * Regenerate and finish RO * Update messages.po * Fixing a previous wrong conflict resolution * Adapt after #6742 Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: Alex <alextec70@outlook.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Add new languages to `CFBundleLocalizations` key (#6835)surfdude292024-12-021-1/+1
| | | | | | | | | | | | | | | * Order tweak in lingui.config.js * Add new languages to `CFBundleLocalizations` key * Order tweak in dates.ts * hyphen to en-dash * change two `zh` tags to use script rather than region * `zh_HK` ➡️ `yue-Hant` * `pt` ➡️ `pt-BR`
* Fix ast (#6774)Frudrax Cheng2024-11-271-2/+1
|
* Add "ast" locale support (#6411)Softastur2024-11-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" translations This commit adds preliminary translation support for "ast" locale. Around 20% is translated. * Update "ast" locale translations * Update "ast" translations Fixes minor spelling mistakes and translates many strings more * Update messages.po With this commit we reach the 55% of strings translated after the last code sync --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Add Aragonese language ('an') support and l10n (#6638)Juan Pablo Martínez2024-11-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update languages.ts * Update i18n.web.ts * Update i18n.ts * Update helpers.ts * Create messages.po * Update lingui.config.js * Update dates.ts * Add files via upload * Update src/components/hooks/dates.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/components/hooks/dates.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update i18n.ts * Update messages.po * Update src/locale/i18n.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Merge branch 'main' into mainPaul Frazee2024-11-231-0/+6
|\
| * Added Galician language localization (#6463)xurxogp2024-11-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update languages.ts added galician language * Update i18n.web.ts added import of galician translations file * Update i18n.ts added galician language * Update helpers.ts added galician to sanitizeLanguage function * galician messages First commit * Second commit * Third commit * fourth commit * fifth commit * Update lingui.config.js change to make available Galician language * galician translation by Carlos Vieito and Alexandre Espinosa --------- Co-authored-by: Alexandre Espinosa Menor <aemenor@gmail.com>
| * Vietnamese Localization (Continued from #2524) (#6564)Quang Phan2024-11-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Vietnamese localization * Complete Vietnamese Translations * Add date localization for Vietnamese * Fix typos and wording in Vietnamese translation * Update Vietnamese translation * Add @vinhphm to Vietnamese translator list --------- Co-authored-by: CromNguyen <nguyenthietmanh98@gmail.com>
| * Implement Polish translation (#6283)axiand2024-11-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial polish translation sweep * rewrite feeds page flavor text * bring up to date with dev branch, revisit some strings * redoing some more... * bring up to date * rm dead strings, try out a different phrasing for threaded mode str prev translation was nonsensical - we're already calling threads "wątki". let's try "recursive tree" instead to describe what threaded mode does * tweaks here and there * more tweaks. sign translation file TL note: trying a new space-saving translation for send via direct message, old one made the context menu stretch * space-saving translations for profile tabs * up to date * tl latest changes * some small fixes * few more tweaks around profile editing strings * i dislike gendered languages * yet more tweaks * Update dates.ts * Review suggestions (1) * tiny fixes * Review suggestions (2) * Review suggestions (3) * Review suggestions (4) * "Anuluj wyciszenie" * A few new strings * Remove dead strings again * Review suggestions (5) * te -> to --------- Co-authored-by: Frudrax Cheng <i@cynosura.one>
* | Allow use of Dutch translations [ER].Guido Leenders2024-11-121-0/+2
|/
* add Thai Language translation support (#5879)Nawapon Boonjua2024-10-301-0/+2
| | | | | | | | | | | | | | | | | | | | | * add Thai Language support * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts * Update messages.po --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Add Hungarian localisation (#5902)smileyhead2024-10-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add 'hu' to lingui.config.js * Add 'hu' to dates.ts * Add 'hu' to helpers.ts * Add 'hu' to i18n.ts * Add 'hu' to i18n.web.ts * Add 'hu' to languages.ts * Create messages.po * Update messages.po * Update messages.po * Update messages.po * Minor fixes Reworded some things in the hashtag context menu. * Some tweaks Shortened Media tab title Added spaces to the short timestamps (mp, p, ó, n, hó) * Hopefully fix the removing of plural strings * Update Hungarian localisation * Fixed some things * Fixed typo * Further small fixes * Update src/locale/locales/hu/messages.po Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/locales/hu/messages.po Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/locales/hu/messages.po Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/locales/hu/messages.po Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/locales/hu/messages.po Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/locales/hu/messages.po Co-authored-by: Frudrax Cheng <i@cynosura.one> * Update src/locale/locales/hu/messages.po Co-authored-by: Frudrax Cheng <i@cynosura.one> * Apply fixes after proofreading session --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> Co-authored-by: Frudrax Cheng <i@cynosura.one>
* Add `en-GB` localisation (#5952)surfdude292024-10-281-0/+2
| | | | | | | | | | | | | | | | | | | * Create blank en-GB/messages.po * localise certain strings for en-GB * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts * Update i18n.ts
* Add Cantonese Localization (#5479)Frudrax Cheng2024-10-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add zh-HK localization * Update dates.ts * HK: Update Translates * HK: Fix typo * HK: Fix wrong language code * HK: Update Translates * HK: Update Translates * rename 'Chinese (Hong Kong)' to 'Cantonese' * HK: Update Translates * Update languages.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * HK: Update Translates by reviewers --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Update dates.ts (#5220)surfdude292024-09-071-0/+2
|
* Update muted words dialog with `expiresAt` and `actorTarget` (#4801)Eric Bailey2024-08-011-0/+69
* WIP not working dropdown * Update MutedWords dialog * Add i18n formatDistance * Comments * Handle text wrapping * Update label copy Co-authored-by: Hailey <me@haileyok.com> * Fix alignment * Improve translation output * Revert toggle changes * Better types for useFormatDistance * Tweaks * Integrate new sdk version into TagMenu * Use ampersand Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Bump SDK --------- Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>