Commit graph

55 commits

Author SHA1 Message Date
Jed Fox
5217835c55
Implement localization for schedule descriptions (#225)
* monthUtils.{format → nonLocalizedFormat}

* Implement localization for schedule descriptions

* Remove outdated comment

* Add general.ordinal in Spanish

Co-Authored-By: Manuel Eduardo Cánepa Cihuelo <10290593+manuelcanepa@users.noreply.github.com>

* yay time zones?

* fix: re-add missing keys

* fix: fix broken i18n imports/initialisation

* style: linting

* fix: re-add english ordinal keys

* fix: add remaining english ordinal keys

* fix: correct dates in schedules.js

* refactor: store translations keys for loot-core in loot-core

* fix: add ns to i18n.t calls directly so parser can find them

* feat: add spanish translation from manuelcanepa

* fix: add comments to help i18n-parser to find contexts

* fix: add "many" context to spanish translations

Co-authored-by: Manuel Eduardo Cánepa Cihuelo <10290593+manuelcanepa@users.noreply.github.com>
Co-authored-by: Tom French <tom@tomfren.ch>
2022-09-08 14:37:45 +01:00
Manuel Eduardo Cánepa Cihuelo
6fb497dec5
Adding translation to rule editor and transaction table (#224)
* #199 Adding translation to rule editor and transaction table

* Feature: Translation to discover schedule table

Fix: Some translation improvements

* fix: Fix minor after check

* Feature: More translation to account

Fix: Add *_old.json files to ignore

* Update packages/desktop-client/src/components/accounts/Account.js

Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>

* fix: Workaround for know caveats

* lint: fix import order

* fix: t is not a function when empty transactions list

* Feature: Translate account filters

* Feature: Translation on transactions table

* Feature: Translate budget and the rest of bootstrap

* Update packages/desktop-client/src/locales/es-ES.json

Co-authored-by: Jed Fox <git@jedfox.com>

* fix: Using the new key for unknow error

* refactor: push useTranslation up above function definition, etc

* refactor: push useTranslation up above function definition

* refactor: set key for Trans component balanceType

* refactor: pass i18keys to Trans components explicitly

Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
Co-authored-by: Jed Fox <git@jedfox.com>
2022-09-06 10:22:22 +01:00
Tom French
cbf1e18299 style: linting 2022-09-02 15:12:24 +01:00
Tom French
11186c9374 Merge branch 'master' into i18n
* master:
  Sort import in alphabetical order (#238)
  Separate external, monorepo and internal imports (#237)
  Allow `enter` to create new transaction when focused on `cleared` column (#234)
  Enforce linting in loot-design (#233)
  style: run linter (#232)
  refactor: create index.js for aql directory (#68)
  Revert "build: update yarn.lock" (#230)
  Fix handling of -0 in budget summary (#229)
  Update bug-report.yml (#228)
2022-09-02 15:10:56 +01:00
Tom French
9c0df36e16
Sort import in alphabetical order (#238)
* style: enforce sorting of imports

* style: alphabetize imports

* style: merge duplicated imports
2022-09-02 15:07:24 +01:00
Tom French
dc53a74459
Separate external, monorepo and internal imports (#237)
* style: enforce ordering of imports

* style: sort imports in loot-core

* style: sort imports in desktop-client

* style: sort imports in loot-design

* style: manual fixes
2022-09-02 12:43:37 +01:00
Ezekiel Elin
ecd91b8f8e
Allow enter to create new transaction when focused on cleared column (#234) 2022-09-01 14:11:31 +01:00
Tom French
953846732c style: remove setting of indent size to 4 in i18n-parser config 2022-08-31 00:21:17 +01:00
Tom French
55049da705 refactor: use i18n-next style of plurals 2022-08-31 00:20:33 +01:00
Tom French
618dd0f27f Merge branch 'master' into i18n
* master:
  fix: use correct comment style
  build: remove patch-package dependency from loot-design
  Conditionally set MSYS
  build: update yarn.lock
  build: use workspace ranges for monorepo dependencies
  changes needed to build on windows
2022-08-30 23:24:43 +01:00
Manuel Eduardo Cánepa Cihuelo
e436c01430
#199 Adding translation to schedules list (#219)
* #199 Adding translation to schedules list

* #199 Complete translation on EditSchedule Form

* #199 Translation for status badge

* #199 Minor changes, suggested by @j-f1

Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
2022-08-30 23:22:43 +01:00
Tom French
fecca411b0
Merge branch 'master' into windows 2022-08-30 15:07:32 +01:00
Tom French
304a384b6c style: format json with 2 space indents 2022-08-30 13:40:33 +01:00
Tom French
a4fe21927d feat: fallback to english rather than showing translation key 2022-08-30 11:14:00 +01:00
Tom French
5c56370920 feat: prevent translation keys which don't exist in locale files 2022-08-30 11:12:19 +01:00
Tom French
43740f18f1 Merge branch 'master' into i18n
* master: (24 commits)
  refactor: sort imports in desktop-client alphabetically
  chore: remove unused imports from desktop-client
  adm-zip to 0.5.6
  style: prettify .eslintrc.js
  build: make eslint-plugin-prettier a dependency of desktop-client
  ci: lint desktop-client in CI
  style: fix or silence linting errors in desktop-client
  chore: update remaining test scripts
  github fix indentation in issue template
  github: update issue template
  fix: correct some re-exports which were breaking things
  fix: stop trying to transform node_modules
  fix: stop the web tests from running in node environment
  fix: add ts-jest presets which are equivalent to the old `transform` properties
  fix: add esModuleInterop so that the default imports issue goes away
  fix: stop typechecking javascript files
  chore: allow mobile package to pass with no tests
  build: replace babel-jest with ts-jest
  Update bug-report.yml
  Addition: Issue template
  ...
2022-08-30 10:24:17 +01:00
Tom French
887df1e388 refactor: sort imports in desktop-client alphabetically 2022-08-30 01:27:10 +01:00
Tom French
8e41d8d2dd chore: remove unused imports from desktop-client 2022-08-30 01:24:32 +01:00
Tom French
677faa611d build: make eslint-plugin-prettier a dependency of desktop-client 2022-08-25 16:35:48 +01:00
Tom French
3ee7ae16cc style: fix or silence linting errors in desktop-client 2022-08-25 16:20:09 +01:00
Tom French
2d025d8b08 fix: get bold tags to display correctly 2022-08-24 17:22:48 +01:00
Tom French
dd9d32a6ed fix: ensure that translation keys match 2022-08-24 17:21:03 +01:00
Manuel Canepa
9b3dbd187f #199 Adding some translation to check if im doing right 2022-08-24 00:18:07 -03:00
Tom French
fd0d30c07c feat: add skeleton of i18n framework 2022-08-24 01:04:08 +01:00
Tom French
7fa62b431c
Merge pull request #124 from andremralves/fix/hitting-enter-on-bootstrap-page
fix: hitting enter after setting password redirects to demo page
2022-08-24 00:31:02 +01:00
Tom French
26ff01f4c9 Merge branch 'master' into remove-unused-deps
* master:
  style: apply prettier fixes
  style: switch prettier to enforce single quotes
  style: enforce prettier rules in linter
  chore: silence erroneous warning for missing moment.js install
  fix: revert remaining changed weights
  fix: revert changes to weights and pin fast-check version to 2.13.0
  test: make all frequency weights be integer values
2022-08-23 16:13:15 +01:00
Tom French
b230c52f92
Merge pull request #131 from TomAFrench/silence-moment-errors
Silence warning for missing moment.js install
2022-08-23 15:55:07 +01:00
Tom French
8d0872c7a4 Merge branch 'master' into prettier
* master:
  fix: correct import of merkle in test
  chore: move snapshot to new dir
  refactor: move crdt files into separate directory
  revert: revert pruning of svg imports
  style: nicer re-exporting syntax
  refactor: remove unused imports
  chore: update package scripts to take advantage of yarn v3
  build: add missing eslint dependency to loot-core
  build: add cross-env dependency to desktop-client package.json
  build: remove deprecated nohoist settings and prevent hoisting of mobile dependencies
  fix: move downshift patch to monorepo root
  CI: update CI definition to use yarn v3
  fix: wrap glob in quotes so that it's properly passed to npm-run-all
  chore: update root yarn scripts to use `workspace` command instead of cd
  chore: fix broken builds
  chore: update to yarnv3 and fix missing packages preventing install
  Force react-error-overlay to 6.0.9 to fix error
  Add docs for building for windows (contributed by @ejmurra)
  add: tsconfig.json
2022-08-23 12:31:04 +01:00
Tom French
0c6304572c build: remove more unused dependencies 2022-08-23 12:24:31 +01:00
Tom French
93a3543464 build: remove unused dependencies 2022-08-23 12:24:03 +01:00
Tom French
2d9091f179 build: add cross-env dependency to desktop-client package.json 2022-08-22 22:35:07 -04:00
Brendan Doherty
90f7a205a6 changes needed to build on windows 2022-08-13 05:48:24 +12:00
Tom French
d30067b5b9 style: apply prettier fixes 2022-07-24 08:53:05 +01:00
Tom French
ffc3e2f423 build: replace jwl-dev-utils with react-dev-utils 2022-07-24 00:17:06 -04:00
Arthur E. Jones
c171597c7b refactor: remove change notes link
Release note publishing is currently in flux. As such, there is no
determinate location to link to.
2022-07-23 00:33:09 -04:00
Arthur E. Jones
0ab294b50e feat: add server version to ManagementApp 2022-07-23 00:33:09 -04:00
Arthur E. Jones
eed864aca1 refactor: extract useServerVersion hook 2022-07-23 00:33:09 -04:00
Arthur E. Jones
b95a57080b refactor: adjust version formatting and position 2022-07-23 00:33:09 -04:00
Arthur E. Jones
1a449ae0b8 fix: wrap async func in useEffect 2022-07-23 00:33:09 -04:00
Arthur E. Jones
3290e73978 refactor: get server version via backend method
Avoid touching the server directly. Maintains consistency with existing
workflow and centralizes changes in the event that, for example, auth
requirements change for this route.
2022-07-23 00:33:09 -04:00
Arthur E. Jones
7d31c51790 feat: display server version on settings page
Shows the version returned form the server /info endpoint as static text
on the Settings component.
2022-07-23 00:33:09 -04:00
Arthur E. Jones
6c8cb65ac2 refactor: extract Version component 2022-07-23 00:33:09 -04:00
Arthur E. Jones
4a49533aba feat: display client version on settings page
Shows the @actual-app/web package version as static text on the Settings
component.
2022-07-23 00:33:09 -04:00
Tom French
55870be101 chore: silence erroneous warning for missing moment.js install 2022-07-17 17:03:57 +01:00
Andre Alves
a2b67cb153 fix: hitting enter after setting password redirects to demo page 2022-07-06 14:51:03 -03:00
Tom French
c431ccf74a build: lock packages to the versions for which patches have been made 2022-06-29 10:27:42 -04:00
Tom French
8c56fa46b5 build: sort contents of data-file-index.txt 2022-06-29 09:57:00 -04:00
Tom French
583e3b7db7 chore: clean up unwanted files 2022-06-29 09:56:37 -04:00
Tom French
2ec2508c0e fix: add missing comma to jest.config.js 2022-06-29 09:54:46 -04:00
Tom French
0124380183 chore: remove empty object entries in package.jsons 2022-06-29 09:50:39 -04:00