ramifice 0.3.23__py3-none-any.whl → 0.3.24__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ramifice
3
- Version: 0.3.23
3
+ Version: 0.3.24
4
4
  Summary: ORM-like API MongoDB for Python language.
5
5
  Project-URL: Homepage, https://github.com/kebasyaty/ramifice
6
6
  Project-URL: Documentation, https://kebasyaty.github.io/ramifice/
@@ -231,7 +231,7 @@ if __name__ == "__main__":
231
231
  asyncio.run(main())
232
232
  ```
233
233
 
234
- ### For create custom translations
234
+ ### How to create custom translations ?
235
235
 
236
236
  ```python
237
237
  from ramifice import translations
@@ -247,21 +247,40 @@ uv run pybabel extract -o config/translations/custom.pot src
247
247
  uv run pybabel init -i config/translations/custom.pot -d config/translations/custom -l en
248
248
  uv run pybabel init -i config/translations/custom.pot -d config/translations/custom -l ru
249
249
  ...
250
+
251
+ # Hint: Do not forget to add translations for new languages.
250
252
  uv run pybabel compile -d config/translations/custom
253
+
251
254
  # Update your custom translations:
252
255
  uv run pybabel extract -o config/translations/custom.pot src
253
256
  uv run pybabel update -i config/translations/custom.pot -d config/translations/custom
257
+ # Hint: Do not forget to check the translations for existing languages.
254
258
  uv run pybabel compile -d config/translations/custom
255
- #
256
- # Add new languages ​​to Ramifice:
259
+ ```
260
+
261
+ ### How to add new languages ​​to Ramifice ?
262
+
263
+ ```python
264
+ from ramifice import translations
265
+
266
+ translations.DEFAULT_LOCALE = "en" # For Ramifice by default = "en"
267
+ translations.LANGUAGES = ["en", "ru", "de", "de_ch"] # For Ramifice by default = ["en", "ru"]
268
+ ```
269
+
270
+ ```shell
271
+ cd project_name
257
272
  # Example:
258
273
  uv run pybabel init -i config/translations/ramifice.pot -d config/translations/ramifice -l de
259
274
  uv run pybabel init -i config/translations/ramifice.pot -d config/translations/ramifice -l de_ch
260
275
  ...
276
+
277
+ # Hint: Do not forget to add translations for new languages.
261
278
  uv run pybabel compile -d config/translations/ramifice
279
+
262
280
  # Update translations to Ramifice:
263
281
  uv run pybabel extract -o config/translations/ramifice.pot ramifice
264
282
  uv run pybabel update -i config/translations/ramifice.pot -d config/translations/ramifice
283
+ # Hint: Do not forget to check the translations for existing languages.
265
284
  uv run pybabel compile -d config/translations/ramifice
266
285
  ```
267
286
 
@@ -76,7 +76,7 @@ ramifice/paladins/groups/num_group.py,sha256=lpyFG9a6WGOzu9f_9jwYVWZNFHxG0B0AVWv
76
76
  ramifice/paladins/groups/pass_group.py,sha256=7EXqssszWQaDldJgvyNFFPxj1KSdCN89xFXrfYTTZTQ,1817
77
77
  ramifice/paladins/groups/slug_group.py,sha256=SVYxHcSSgCA51C18LVGxMQYuUw-6ryQlTi6B9T8Dzsw,2185
78
78
  ramifice/paladins/groups/text_group.py,sha256=N_uHsL-JJnNp2JIzNxmNyK9hRupdZGTx9Cbe6muKSmI,3128
79
- ramifice-0.3.23.dist-info/METADATA,sha256=yvhJPp8JUOSszvNnN1oZwHJfRunW0sX4b4Xzk_L724Y,18939
80
- ramifice-0.3.23.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
81
- ramifice-0.3.23.dist-info/licenses/LICENSE,sha256=LrEL0aTZx90HDwFUQCJutORiDjJL9AnuVvCtspXIqt4,1095
82
- ramifice-0.3.23.dist-info/RECORD,,
79
+ ramifice-0.3.24.dist-info/METADATA,sha256=2E65Rusy36Wzss6AZM6sM4yAR_qwiSDfFB0XkoEckMg,19467
80
+ ramifice-0.3.24.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
81
+ ramifice-0.3.24.dist-info/licenses/LICENSE,sha256=LrEL0aTZx90HDwFUQCJutORiDjJL9AnuVvCtspXIqt4,1095
82
+ ramifice-0.3.24.dist-info/RECORD,,