53 Commits

Author SHA1 Message Date
b4f4b06f29 Enable RUF021 (#135832) 2025-01-17 10:20:45 +01:00
9a1b965c7f Fix rmtree in translation script on MacOS (#129352) 2025-01-16 12:39:37 +01:00
9db6f0ffc4 Only download translation strings we have defined (#131864) 2024-11-28 20:52:51 +01:00
Sid
1db68327f9 Enable Ruff PTH for the script directory (#124441)
* Enable Ruff PTH for the script directory

* Address review comments

* Fix translations script

* Update script/hassfest/config_flow.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-09-06 11:33:01 +02:00
dc47792ff2 Update codespell to 2.3.0 (#118001) 2024-05-24 08:22:29 +02:00
ecda6b70ff Filter out fuzzy translations from Lokalise (#114968) 2024-04-08 10:04:16 +02:00
Sid
d846676e84 Enable first batch of Ruff RET rules (#114480)
* Enable first batch of Ruff RET rules

* disable pylint rules
2024-03-31 11:30:59 +02:00
6bb4e7d62c Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
aa16a9d707 Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
a6b842f818 Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
19ab3d6daf Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
d5af6c595d Fix runaway regex in translations.develop (#102386)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-10-23 12:34:32 +02:00
164872e1af Improve error messages from translation script (#102098)
Co-authored-by: Robert Resch <robert@resch.dev>
2023-10-22 23:45:27 +02:00
44acc88365 Update Lokalise CLI to v2.6.8 (#101297) 2023-10-02 23:01:30 +02:00
3094991236 Upgrade ruff to 0.0.285 (#98647) 2023-08-19 08:17:17 -04:00
7859be6481 Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
d1b8f2987c Fix incorrect regex in translation script (#91536) 2023-04-17 12:18:34 +02:00
939eef3b28 Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
9f9873b39a Add ability to generate development translations for all integrations (#87197) 2023-02-02 16:27:51 -05:00
5e81d28116 Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
373ad21ce3 Fix translations clean up script (#72114) 2022-05-23 11:00:17 +02:00
7fbc3f6364 Skip translations when integration no longer exists (#71004)
* Skip translations when integration no longer exists

* Update script/translations/download.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-28 08:31:11 -07:00
2686be921c Remove deprecated (old) Z-Wave integration (#67221)
* Remove deprecated (old) Z-Wave integration

* Mark migration tests as skip, for later cleanup
2022-03-18 13:09:10 +01:00
5af4068583 Fix binary sensor translations for carbon_monoxide (#66891)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-21 10:34:38 -08:00
4cb7718192 Update typing 16 (#48087) 2021-03-18 22:58:19 +01:00
9b7c39d20b Postponed evaluation of annotations in core (#46434)
* Postponed evaluation of annotations in core

* Remove unneeded future
2021-02-12 10:58:20 +01:00
687923690f Chunk translation clean script to avoid too long url error (#43090) 2020-11-11 13:23:16 +01:00
f101d9cddb Update translate develop to substitute references (#41445) 2020-10-09 11:51:05 +02:00
1c2ebdf307 Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
f037feaebc Handle non-existing translations in clean script (#38574) 2020-08-06 01:49:52 +02:00
02bcdf5162 Fix translations download (#36770) 2020-06-14 11:38:05 -07:00
c316735996 Bump lokalise2 2.5.1 (#36430) 2020-06-04 10:17:25 +02:00
35c00fed6d Migrate translations upload to use Lokalise CLI 2 (#36247) 2020-05-29 11:43:48 -07:00
9c45115468 Upgrade translations download to use Lokalise CLI v2 (#36240) 2020-05-28 21:06:09 -07:00
dd32324e01 Use config flow references for data (#35529) 2020-05-12 10:50:44 -07:00
befda9a78b Add email as common data string (#35546) 2020-05-12 09:08:07 -07:00
0b8f8db67b Clean up script for WLED translations (#35260) 2020-05-06 09:28:46 -07:00
34e35f6aa3 Add config flow base strings (#34523) 2020-05-04 20:10:39 -07:00
c97ce05b09 Add script to copy backend translations to frontend (#34706) 2020-04-28 10:35:38 -07:00
730a257f3c Rename translations dir for integrations (#34494) 2020-04-21 16:11:05 -07:00
d560e8245a Import state strings (#34451) 2020-04-20 16:25:35 -07:00
b4282fca84 Fix return in translation script 2020-04-19 20:37:49 -07:00
4720a7a891 Add foundation for state translations (#34443) 2020-04-19 20:35:49 -07:00
55af2ab4dc Add a script to clean the frontend translations (#34309) 2020-04-17 09:47:49 -07:00
0d60d40512 Update translations 2020-04-16 13:00:10 -07:00
55dfca7467 Drop title from translations if brand name (#34306) 2020-04-16 12:52:53 -07:00
6119e79023 Migrate frontend translations of domains to backend (#34294) 2020-04-16 11:52:27 -07:00
1ffc3a00e7 Add translations check script (#34272) 2020-04-15 16:58:20 -07:00
72cc656b7e Add Translations 2.0 migrate script (#34261) 2020-04-15 13:53:52 -07:00
8e6e8dfbe0 Migrate translations_develop script (#33933)
* Migrate translations_develop script

* Fix lint
2020-04-10 14:17:09 -07:00