Commit Graph

12 Commits (a07d5d38d6b1d1b61fb7734326dbfef86dc8c785)

Author SHA1 Message Date
boojack a07d5d38d6
feat: memo relation part1 (#1677)
* feat: memo relation part1

* 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
M. Gschwandtner 964c58ac01
feat: responsive layout for create shortcut dialog (#717) 2 years ago
boojack c5200ca31b
feat: dark mode for dialogs (#643) 2 years ago
boojack cb50bbc3cb
refactor: remove mixin colors (#458) 2 years ago
Zeng1998 9b827b4801
feat: add support for time-shortcut (#434)
* feat: add support for time-shortcut

* update

Co-authored-by: boojack <stevenlgtm@gmail.com>
2 years ago
boojack 8d161b4526
fix: create shortcut input (#186)
* fix: create shortcut input

* chore: add yarn build
3 years ago
boojack 93ba2f4fab chore: fix icon style 3 years ago
boojack 18fc93789b chore: update button style 3 years ago
email dedea0dd27 fix: tags initial 3 years ago
email 8f7445c299 feat: remove mobile styles 3 years ago
email 3fa918169e refactor: sync frontend 3 years ago