forgejo/options/locale_next
Gusted 53df0bf9a4 chore(sec): unify usage of crypto/rand.Read (#7453)
- Unify the usage of [`crypto/rand.Read`](https://pkg.go.dev/crypto/rand#Read) to `util.CryptoRandomBytes`.
- Refactor `util.CryptoRandomBytes` to never return an error. It is documented by Go, https://go.dev/issue/66821, to always succeed. So if we still receive a error or if the returned bytes read is not equal to the expected bytes to be read we panic (just to be on the safe side).
- This simplifies a lot of code to no longer care about error handling.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7453
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-04-04 03:31:37 +00:00
..
locale_ar.json
locale_be.json
locale_bg.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_bn.json
locale_bs.json
locale_ca.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_cs-CZ.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_da.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_de-DE.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_el-GR.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_en-US.json chore(sec): unify usage of crypto/rand.Read (#7453) 2025-04-04 03:31:37 +00:00
locale_eo.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_es-ES.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_et.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_fa-IR.json i18n: update of translations from Codeberg Translate (#7066) 2025-03-07 14:26:37 +00:00
locale_fi-FI.json i18n: update of translations from Codeberg Translate 2025-03-20 14:55:14 +00:00
locale_fil.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_fr-FR.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_gl.json
locale_hi.json
locale_hu-HU.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_id-ID.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_is-IS.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_it-IT.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_ja-JP.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_ko-KR.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_lt.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_lv-LV.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_ml-IN.json
locale_nb_NO.json
locale_nds.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_nl-NL.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_pl-PL.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_pt-BR.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_pt-PT.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_ru-RU.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_si-LK.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_sk-SK.json
locale_sl.json
locale_sr-SP.json
locale_sv-SE.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_tr-TR.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00
locale_uk-UA.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_vi.json
locale_yi.json
locale_zh-CN.json i18n: update of translations from Codeberg Translate 2025-04-03 07:02:09 +00:00
locale_zh-HK.json fix(i18n): flatten next locales (#6607) 2025-01-18 07:35:28 +00:00
locale_zh-TW.json i18n: update of translations from Codeberg Translate 2025-03-16 06:50:16 +00:00