Commit Graph

28 Commits (1780225da5ab2d41cc916f69bfcc49128b51a2d9)

Author SHA1 Message Date
Ajay Kumbhare 1780225da5
feat: add typeScript support to enforce valid translation keys (#1954)
* #1952 Fix incorrect localization key for sign-up failure message

* feat: add typeScript support to enforce valid translation keys

* feat: add typeScript support to enforce valid translation keys

* fix lint errors

* fix lint error
2 years ago
boojack 0292f472e0
chore: add data empty placeholder (#1913) 2 years ago
boojack db8b8f0d58
chore: remove unused kit components (#1871) 2 years ago
boojack 11a385cda6
chore: update upgrade version view (#1791) 2 years ago
boojack 32e2f1d339
chore: update page routes (#1790)
chore: update routers
2 years ago
boojack b40571095d
feat: update memo detail page (#1682)
* feat: update memo detail page

* chore: update
2 years ago
Lincoln Nogueira 557278fac0
feat: improve i18n support as a whole (#1526)
* feat: improve i18n support as a whole

- Remove dayjs in favor of /helpers/datetime.ts, which uses
Intl.DateTimeFormat and Date. Dayjs is not exactly i18n friendly
and has several locale related opened issues.

- Move/refactor date/time code from /helpers/utils.ts to
/helpers/datetime.ts.

- Fix Daily Review weekday not changing according to selected date.

- Localize Daily review weekday and month.

- Load i18n listed strings from /locales/{locale}.json in a dynamic way.
This makes much easier to add new locales, by just adding a properly
named json file and listing it only in /web/src/i18n.ts and
/api/user_setting.go.

- Fallback languages are now set in /web/src/i18n.ts.

- Full language codes are now preffered, but they fallback to 2-letter
codes when not available.

- The locale dropdown is now populated dynamically from the available
locales. Locale names are populated by the browser via
Intl.DisplayNames(locale).

- /web/src/i18n.ts now exports a type TLocale from availableLocales
array. This is used only by findNearestLanguageMatch(). As I was unable
to use this type in ".d.ts" files, I switched the Locale type from
/web/src/types/i18n.d.ts to string.

- Move pretty much all hardcoded text strings to i18n strings.

- Add pt-BR translation.

- Remove site.ts and move its content to a i18n string.

- Rename zh.json to zh-Hans.json to get the correct language name on
selector dropdown.

- Remove pt_BR.json and replace with pt-BR.json.

- Some minor layout spacing fixes to accommodate larger texts.

- Improve some error messages.

* Delete .yarnrc.yml

* Delete package-lock.json

* fix: 158:28  error  Insert `⏎`  prettier/prettier
2 years ago
boojack f48d91539e
chore: update locale file structure (#1478) 2 years ago
boojack 89ab57d738
refactor: update import prefix with alias (#1433) 2 years ago
boojack f86816fea2
feat: use react-hot-toast (#1321) 2 years ago
boojack ef621a444f
refactor: introducing `use{Module}Store` instead of service (#768)
* refactor: introducing `useEditorStore`

* refactor: update

* chore: update
3 years ago
boojack ab8c7b9d8a
fix: auto complete in memo editor (#720) 3 years ago
boojack 072851e3ba
chore: update dialog style (#574)
* chore: update tests

* chore: update dialog styles
3 years ago
Zeng1998 1e3b8315a0
chore: update MemoResources props (#432) 3 years ago
boojack 1c2998c4d8
feat: pagination for memo list (#330) 3 years ago
boojack 2a4fc7dcc3
chore: update memo display time (#327)
* chore: update memo display time

* chore: update
3 years ago
Steven c60c58ed69 chore: fix memo content click handler 3 years ago
Steven 366afdd1e4 feat: use `i18next` 3 years ago
Steven 1591fdf61c chore: update i18n structures 3 years ago
ChasLui 7e8d1128f8
chore: update i18n (#215) 3 years ago
Steven 54db6eda04 chore: update common locales 3 years ago
Steven 6e4577f721 feat: add `MemoContent` component 3 years ago
boojack e9ac6affef
feat: add explore page (#205) 3 years ago
Steven 3e13fa1ce6 chore: update marked helper 3 years ago
Steven f06a3d171b chore: update error message handler 3 years ago
Steven a7a01df79a chore: update i18n 3 years ago
boojack df7b4d54c6
chore: show inline image in daily review dialog (#135) 3 years ago
boojack 06fc29aecd chore: rename delete to archive 3 years ago