Commit Graph

14556 Commits

Author SHA1 Message Date
Rostislav Wolny
00b0723f96 Refactor logic for detection of translations installed from .org
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
fc5b25dd20 Force installing language packs updates on plugin activation
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
84b7ec709a Fetch .com language packs info during plugin activation
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
db14f851a1 Prevent installing translations from .org if they are available on .com
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
7791219d7d Refactor processing translations API data in two methods
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
a21e31ca2d Make sure translations from .org are replaced by translations from .com
When the plugin is initially installed it may download translations from .org.
The translations from .org may have a newer date then translations from .com, but are incomplete.
This change ensures that translations installed from .org are always replaced by translations from .com.
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
ac17700995 Hook into translation update earlier in plugin initialisation
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Jan Lysý
002f20a75d Remove deleting *.po files
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
885209d9a3 Fix translation loading
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
d0822be924 Remove translations:pack command
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
40860d1d59 Increase minimal timeout for API requests and fix comment
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
dd54518933 Change timeout for translation API requests
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
6f020342c1 Add integration test for TranslationUpdater
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
982a6ee073 Remove loading plugin translations
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
08796ed48b Remove generating translations
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
afebe36c81 Add automatic check for translations
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
f86f4e3f79 Add wordpress functions
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
75cbcacae2 Remove static usage of WP functions
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Jakes
9ea484c972 Fix TS type checking not workfing in Docker
[MAILPOET-4194]
2022-03-17 09:27:44 +01:00
David Remer
7290cbf38c Force action-scheduler to run
According to the action scheduler documentation, we can have multiple
concurrent batches. So we can force the run and thus not fail the
tests.

The problem with a lot of concurrent batches could be an exhaust of the
database or the CI server in general

[MAILPOET-4169]
2022-03-16 13:20:59 +01:00
Jan Jakes
2ba8d15c6a Pass transifex token using env variable
[MAILPOET-4189]
2022-03-16 13:20:19 +01:00
Jan Jakes
93fc9f50e3 Remove installation of python, pip, and old transifex CLI
[MAILPOET-4189]
2022-03-16 13:20:19 +01:00
Jan Jakes
2322ec909c Use new Transifex CLI
[MAILPOET-4189]
2022-03-16 13:20:19 +01:00
Jan Jakes
1114925a24 Migrate .tx/config to new CLI
[MAILPOET-4189]
2022-03-16 13:20:19 +01:00
Jan Jakes
21d4df0c9b Add Transifex CLI wrapper that auto-downloads executables
[MAILPOET-4189]
2022-03-16 13:20:19 +01:00
Jan Jakes
38860c0976 Use stricter TypeScript checks
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
9af61c9b8f Rewirte MailPoet.Ajax to TypeScript
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
33e16dfeff Check for unused parameters
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
7e5322a214 Use naming conventions from airbnb config
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
35b59d407f Replace "import * as React" with specific imports
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
133d05883b Expose react/jsx-runtime for premium plugin
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
3347f60e9f Extract tsconfig to tsconfig.base.json
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
71b84d5004 Remove unused config option
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
c29c79f8bf Remove eslint rules already covered by extended configs
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
ed06f4165d Fix import cycles
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
66361f7ec9 Fix wrong index.ts re-exports
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
c48fbf8c6d Fix some eslint airbnb-typescript detected errors
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
9039c576b0 Allow named default exports
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
84018d8f35 Autofix airbnb-typescript eslint rules
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
1c9c66c94c Put standard eslint rules before airbnb configs
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
2fc77cf1fe Add airbnb-typescript configuration to ESLlint
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
ad0046cf9f Install eslint-config-airbnb-typescript
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
503d445486 Sort configuration 2022-03-16 13:15:23 +01:00
Jan Jakes
6fb1894f97 Remove tsconfig comments
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
054cf1dda1 Fix code to use new JSX transform
This was done using "update-react-imports" codemod.

[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
2d4c4db5d0 Use new JSX transform rules in ESLint
[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Jan Jakes
3a86cc963c Use new JSX transform in Babel
See: https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html

[MAILPOET-3915]
2022-03-16 13:15:23 +01:00
Oluwaseun Olorunsola
e46792ec51 Release 3.84.1 2022-03-15 12:52:40 +01:00
Ján Mikláš
ffcbc358a1 Remove empty line in translatable string
[MAILPOET-4182]
2022-03-14 12:09:24 +01:00
Brezo Cordero
5dc215efa7 Improve comments and tests for inactive subscribers
[MAILPOET-4081]
2022-03-14 12:07:59 +01:00