generator-jhipster 8.3.0 → 8.4.0

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.
Files changed (194) hide show
  1. package/dist/generators/angular/generator.js +34 -0
  2. package/dist/generators/angular/resources/package.json +7 -7
  3. package/dist/generators/angular/templates/src/main/webapp/app/account/password/password.component.html.ejs +1 -1
  4. package/dist/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.html.ejs +1 -1
  5. package/dist/generators/angular/templates/src/main/webapp/app/account/password-reset/init/password-reset-init.component.html.ejs +1 -1
  6. package/dist/generators/angular/templates/src/main/webapp/app/account/register/register.component.html.ejs +1 -1
  7. package/dist/generators/angular/templates/src/main/webapp/app/account/settings/settings.component.html.ejs +1 -1
  8. package/dist/generators/angular/templates/src/main/webapp/app/admin/user-management/update/user-management-update.component.html.ejs +1 -1
  9. package/dist/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/update/_entityFile_-form.service.ts.ejs +10 -6
  10. package/dist/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/update/_entityFile_-update.component.html.ejs +1 -1
  11. package/dist/generators/angular/templates/src/main/webapp/app/home/home.component.html.ejs +6 -6
  12. package/dist/generators/angular/templates/src/main/webapp/app/login/login.component.html.ejs +1 -1
  13. package/dist/generators/angular/templates/webpack/webpack.custom.js.ejs +1 -1
  14. package/dist/generators/app/generator.js +2 -20
  15. package/dist/generators/app/support/config.js +1 -3
  16. package/dist/generators/base-application/support/prepare-field.js +1 -1
  17. package/dist/generators/base-core/generator.js +5 -2
  18. package/dist/generators/base-entity-changes/generator.js +24 -0
  19. package/dist/generators/bootstrap-application-base/generator.js +42 -1
  20. package/dist/generators/bootstrap-application-server/generator.js +4 -7
  21. package/dist/generators/ci-cd/generator.js +0 -5
  22. package/dist/generators/client/generator.js +0 -22
  23. package/dist/generators/client/resources/package.json +6 -6
  24. package/dist/generators/client/templates/src/main/webapp/index.html.ejs +1 -1
  25. package/dist/generators/common/command.js +13 -0
  26. package/dist/generators/common/generator.js +12 -3
  27. package/dist/generators/common/resources/package.json +1 -1
  28. package/dist/generators/docker-compose/generator.js +1 -5
  29. package/dist/generators/export-jdl/generator.js +0 -5
  30. package/dist/generators/gatling/templates/buildSrc/src/main/groovy/jhipster.gatling-conventions.gradle.ejs +1 -1
  31. package/dist/generators/generate-blueprint/resources/package.json +1 -1
  32. package/dist/generators/generator-constants.js +1 -1
  33. package/dist/generators/heroku/generator.js +0 -5
  34. package/dist/generators/init/resources/.node-version +1 -1
  35. package/dist/generators/java/generators/domain/generator.js +16 -0
  36. package/dist/generators/jdl/generator.js +0 -4
  37. package/dist/generators/kubernetes/generator.js +0 -5
  38. package/dist/generators/kubernetes-helm/generator.js +0 -5
  39. package/dist/generators/kubernetes-knative/generator.js +0 -5
  40. package/dist/generators/languages/files.js +2 -2
  41. package/dist/generators/languages/generator.js +0 -6
  42. package/dist/generators/languages/templates/src/main/webapp/i18n/al/home.json.ejs +19 -0
  43. package/dist/generators/languages/templates/src/main/webapp/i18n/ar-ly/home.json.ejs +19 -0
  44. package/dist/generators/languages/templates/src/main/webapp/i18n/az-Latn-az/home.json.ejs +19 -0
  45. package/dist/generators/languages/templates/src/main/webapp/i18n/bg/home.json.ejs +19 -0
  46. package/dist/generators/languages/templates/src/main/webapp/i18n/bn/home.json.ejs +19 -0
  47. package/dist/generators/languages/templates/src/main/webapp/i18n/by/home.json.ejs +19 -0
  48. package/dist/generators/languages/templates/src/main/webapp/i18n/ca/home.json.ejs +19 -0
  49. package/dist/generators/languages/templates/src/main/webapp/i18n/cs/home.json.ejs +19 -0
  50. package/dist/generators/languages/templates/src/main/webapp/i18n/da/home.json.ejs +19 -0
  51. package/dist/generators/languages/templates/src/main/webapp/i18n/de/global.json.ejs +2 -2
  52. package/dist/generators/languages/templates/src/main/webapp/i18n/de/home.json.ejs +19 -0
  53. package/dist/generators/languages/templates/src/main/webapp/i18n/el/home.json.ejs +19 -0
  54. package/dist/generators/languages/templates/src/main/webapp/i18n/en/home.json.ejs +19 -0
  55. package/dist/generators/languages/templates/src/main/webapp/i18n/es/home.json.ejs +19 -0
  56. package/dist/generators/languages/templates/src/main/webapp/i18n/et/home.json.ejs +19 -0
  57. package/dist/generators/languages/templates/src/main/webapp/i18n/fa/home.json.ejs +19 -0
  58. package/dist/generators/languages/templates/src/main/webapp/i18n/fi/home.json.ejs +19 -0
  59. package/dist/generators/languages/templates/src/main/webapp/i18n/fr/home.json.ejs +19 -0
  60. package/dist/generators/languages/templates/src/main/webapp/i18n/gl/home.json.ejs +19 -0
  61. package/dist/generators/languages/templates/src/main/webapp/i18n/hi/home.json.ejs +19 -0
  62. package/dist/generators/languages/templates/src/main/webapp/i18n/hr/home.json.ejs +19 -0
  63. package/dist/generators/languages/templates/src/main/webapp/i18n/hu/home.json.ejs +19 -0
  64. package/dist/generators/languages/templates/src/main/webapp/i18n/hy/home.json.ejs +19 -0
  65. package/dist/generators/languages/templates/src/main/webapp/i18n/id/home.json.ejs +19 -0
  66. package/dist/generators/languages/templates/src/main/webapp/i18n/it/home.json.ejs +19 -0
  67. package/dist/generators/languages/templates/src/main/webapp/i18n/ja/home.json.ejs +19 -0
  68. package/dist/generators/languages/templates/src/main/webapp/i18n/ko/home.json.ejs +19 -0
  69. package/dist/generators/languages/templates/src/main/webapp/i18n/kr-Latn-kr/home.json.ejs +19 -0
  70. package/dist/generators/languages/templates/src/main/webapp/i18n/mr/home.json.ejs +19 -0
  71. package/dist/generators/languages/templates/src/main/webapp/i18n/my/home.json.ejs +19 -0
  72. package/dist/generators/languages/templates/src/main/webapp/i18n/nl/home.json.ejs +19 -0
  73. package/dist/generators/languages/templates/src/main/webapp/i18n/pa/{home.json → home.json.ejs} +2 -2
  74. package/dist/generators/languages/templates/src/main/webapp/i18n/pl/home.json.ejs +19 -0
  75. package/dist/generators/languages/templates/src/main/webapp/i18n/pt-br/home.json.ejs +19 -0
  76. package/dist/generators/languages/templates/src/main/webapp/i18n/pt-pt/home.json.ejs +19 -0
  77. package/dist/generators/languages/templates/src/main/webapp/i18n/ro/home.json.ejs +19 -0
  78. package/dist/generators/languages/templates/src/main/webapp/i18n/ru/home.json.ejs +19 -0
  79. package/dist/generators/languages/templates/src/main/webapp/i18n/si/{home.json → home.json.ejs} +6 -6
  80. package/dist/generators/languages/templates/src/main/webapp/i18n/sk/home.json.ejs +19 -0
  81. package/dist/generators/languages/templates/src/main/webapp/i18n/sr/home.json.ejs +19 -0
  82. package/dist/generators/languages/templates/src/main/webapp/i18n/sv/home.json.ejs +19 -0
  83. package/dist/generators/languages/templates/src/main/webapp/i18n/ta/home.json.ejs +19 -0
  84. package/dist/generators/languages/templates/src/main/webapp/i18n/te/{home.json → home.json.ejs} +1 -1
  85. package/dist/generators/languages/templates/src/main/webapp/i18n/th/home.json.ejs +19 -0
  86. package/dist/generators/languages/templates/src/main/webapp/i18n/tr/home.json.ejs +19 -0
  87. package/dist/generators/languages/templates/src/main/webapp/i18n/ua/home.json.ejs +19 -0
  88. package/dist/generators/languages/templates/src/main/webapp/i18n/uz-Cyrl-uz/home.json.ejs +19 -0
  89. package/dist/generators/languages/templates/src/main/webapp/i18n/uz-Latn-uz/home.json.ejs +19 -0
  90. package/dist/generators/languages/templates/src/main/webapp/i18n/vi/home.json.ejs +19 -0
  91. package/dist/generators/languages/templates/src/main/webapp/i18n/zh-cn/home.json.ejs +19 -0
  92. package/dist/generators/languages/templates/src/main/webapp/i18n/zh-tw/home.json.ejs +19 -0
  93. package/dist/generators/liquibase/generator.js +59 -12
  94. package/dist/generators/liquibase/support/prepare-field.js +16 -1
  95. package/dist/generators/liquibase/support/relationship.js +1 -0
  96. package/dist/generators/liquibase/templates/src/main/resources/config/liquibase/changelog/added_entity.xml.ejs +1 -1
  97. package/dist/generators/liquibase/templates/src/main/resources/config/liquibase/changelog/updated_entity.xml.ejs +3 -3
  98. package/dist/generators/liquibase/templates/src/main/resources/config/liquibase/changelog/updated_entity_constraints.xml.ejs +26 -1
  99. package/dist/generators/liquibase/templates/src/main/resources/config/liquibase/fake-data/table_entity.csv.ejs +3 -3
  100. package/dist/generators/react/resources/package.json +18 -18
  101. package/dist/generators/react/templates/src/main/webapp/app/modules/home/home.tsx.ejs +7 -7
  102. package/dist/generators/react/templates/webpack/webpack.microfrontend.js.jhi.react.ejs +0 -8
  103. package/dist/generators/server/generator.js +16 -51
  104. package/dist/generators/server/resources/Dockerfile +9 -9
  105. package/dist/generators/server/resources/gradle/libs.versions.toml +8 -8
  106. package/dist/generators/server/resources/pom.xml +7 -7
  107. package/dist/generators/server/support/prepare-field.js +7 -2
  108. package/dist/generators/server/support/prepare-relationship.js +7 -2
  109. package/dist/generators/server/templates/gradle/profile_dev.gradle.ejs +2 -2
  110. package/dist/generators/server/templates/gradle/profile_prod.gradle.ejs +2 -2
  111. package/dist/generators/server/templates/pom.xml.ejs +0 -4
  112. package/dist/generators/server/templates/src/main/java/_package_/config/SecurityConfiguration_imperative.java.ejs +56 -6
  113. package/dist/generators/server/templates/src/main/resources/config/application.yml.ejs +1 -1
  114. package/dist/generators/server/templates/src/main/resources/config/bootstrap.yml.ejs +1 -1
  115. package/dist/generators/server/templates/src/main/resources/static/index_microservices.html.ejs +8 -8
  116. package/dist/generators/spring-boot/cleanup.js +3 -0
  117. package/dist/generators/spring-boot/command.js +10 -1
  118. package/dist/generators/spring-boot/files.js +0 -5
  119. package/dist/generators/spring-boot/generator.js +17 -0
  120. package/dist/generators/{server → spring-boot}/prompts.js +2 -2
  121. package/dist/generators/spring-boot/resources/spring-boot-dependencies.pom +111 -111
  122. package/dist/generators/spring-cache/resources/gradle/libs.versions.toml +2 -2
  123. package/dist/generators/spring-cache/templates/src/main/java/_package_/config/CacheConfiguration.java.ejs +4 -0
  124. package/dist/generators/{app/prompts.js → spring-data-relational/support/h2-reserved-keywords.js} +4 -15
  125. package/dist/generators/upgrade/generator.js +0 -4
  126. package/dist/generators/vue/resources/package.json +14 -14
  127. package/dist/generators/vue/templates/src/main/webapp/app/account/change-password/change-password.vue.ejs +1 -1
  128. package/dist/generators/vue/templates/src/main/webapp/app/account/login-form/login-form.vue.ejs +1 -1
  129. package/dist/generators/vue/templates/src/main/webapp/app/account/register/register.vue.ejs +1 -1
  130. package/dist/generators/vue/templates/src/main/webapp/app/account/reset-password/finish/reset-password-finish.vue.ejs +1 -1
  131. package/dist/generators/vue/templates/src/main/webapp/app/account/reset-password/init/reset-password-init.vue.ejs +1 -1
  132. package/dist/generators/vue/templates/src/main/webapp/app/account/settings/settings.vue.ejs +1 -1
  133. package/dist/generators/vue/templates/src/main/webapp/app/admin/user-management/user-management-edit.vue.ejs +1 -1
  134. package/dist/generators/vue/templates/src/main/webapp/app/core/home/home.vue.ejs +7 -7
  135. package/dist/generators/vue/templates/src/main/webapp/app/entities/_entityFolder_/_entityFile_-update.vue.ejs +1 -1
  136. package/dist/generators/vue/templates/vitest.config.mts.ejs +1 -1
  137. package/dist/generators/vue/templates/webpack/webpack.microfrontend.js.jhi.vue.ejs +0 -9
  138. package/dist/types/generators/base/api.d.ts +1 -1
  139. package/dist/types/generators/base-application/types.d.ts +15 -0
  140. package/dist/types/generators/base-entity-changes/types.d.ts +2 -0
  141. package/dist/types/generators/generator-constants.d.ts +1 -1
  142. package/dist/types/generators/spring-data-relational/support/h2-reserved-keywords.d.ts +20 -0
  143. package/package.json +10 -11
  144. package/dist/generators/languages/templates/src/main/webapp/i18n/al/home.json +0 -19
  145. package/dist/generators/languages/templates/src/main/webapp/i18n/ar-ly/home.json +0 -19
  146. package/dist/generators/languages/templates/src/main/webapp/i18n/az-Latn-az/home.json +0 -19
  147. package/dist/generators/languages/templates/src/main/webapp/i18n/bg/home.json +0 -19
  148. package/dist/generators/languages/templates/src/main/webapp/i18n/bn/home.json +0 -19
  149. package/dist/generators/languages/templates/src/main/webapp/i18n/by/home.json +0 -19
  150. package/dist/generators/languages/templates/src/main/webapp/i18n/ca/home.json +0 -19
  151. package/dist/generators/languages/templates/src/main/webapp/i18n/cs/home.json +0 -19
  152. package/dist/generators/languages/templates/src/main/webapp/i18n/da/home.json +0 -19
  153. package/dist/generators/languages/templates/src/main/webapp/i18n/de/home.json +0 -19
  154. package/dist/generators/languages/templates/src/main/webapp/i18n/el/home.json +0 -19
  155. package/dist/generators/languages/templates/src/main/webapp/i18n/en/home.json +0 -19
  156. package/dist/generators/languages/templates/src/main/webapp/i18n/es/home.json +0 -19
  157. package/dist/generators/languages/templates/src/main/webapp/i18n/et/home.json +0 -19
  158. package/dist/generators/languages/templates/src/main/webapp/i18n/fa/home.json +0 -19
  159. package/dist/generators/languages/templates/src/main/webapp/i18n/fi/home.json +0 -19
  160. package/dist/generators/languages/templates/src/main/webapp/i18n/fr/home.json +0 -19
  161. package/dist/generators/languages/templates/src/main/webapp/i18n/gl/home.json +0 -19
  162. package/dist/generators/languages/templates/src/main/webapp/i18n/hi/home.json +0 -19
  163. package/dist/generators/languages/templates/src/main/webapp/i18n/hr/home.json +0 -19
  164. package/dist/generators/languages/templates/src/main/webapp/i18n/hu/home.json +0 -19
  165. package/dist/generators/languages/templates/src/main/webapp/i18n/hy/home.json +0 -19
  166. package/dist/generators/languages/templates/src/main/webapp/i18n/id/home.json +0 -19
  167. package/dist/generators/languages/templates/src/main/webapp/i18n/it/home.json +0 -19
  168. package/dist/generators/languages/templates/src/main/webapp/i18n/ja/home.json +0 -19
  169. package/dist/generators/languages/templates/src/main/webapp/i18n/ko/home.json +0 -19
  170. package/dist/generators/languages/templates/src/main/webapp/i18n/kr-Latn-kr/home.json +0 -19
  171. package/dist/generators/languages/templates/src/main/webapp/i18n/mr/home.json +0 -19
  172. package/dist/generators/languages/templates/src/main/webapp/i18n/my/home.json +0 -19
  173. package/dist/generators/languages/templates/src/main/webapp/i18n/nl/home.json +0 -19
  174. package/dist/generators/languages/templates/src/main/webapp/i18n/pl/home.json +0 -19
  175. package/dist/generators/languages/templates/src/main/webapp/i18n/pt-br/home.json +0 -19
  176. package/dist/generators/languages/templates/src/main/webapp/i18n/pt-pt/home.json +0 -19
  177. package/dist/generators/languages/templates/src/main/webapp/i18n/ro/home.json +0 -19
  178. package/dist/generators/languages/templates/src/main/webapp/i18n/ru/home.json +0 -19
  179. package/dist/generators/languages/templates/src/main/webapp/i18n/sk/home.json +0 -19
  180. package/dist/generators/languages/templates/src/main/webapp/i18n/sr/home.json +0 -19
  181. package/dist/generators/languages/templates/src/main/webapp/i18n/sv/home.json +0 -19
  182. package/dist/generators/languages/templates/src/main/webapp/i18n/ta/home.json +0 -19
  183. package/dist/generators/languages/templates/src/main/webapp/i18n/th/home.json +0 -19
  184. package/dist/generators/languages/templates/src/main/webapp/i18n/tr/home.json +0 -19
  185. package/dist/generators/languages/templates/src/main/webapp/i18n/ua/home.json +0 -19
  186. package/dist/generators/languages/templates/src/main/webapp/i18n/uz-Cyrl-uz/global.json +0 -148
  187. package/dist/generators/languages/templates/src/main/webapp/i18n/uz-Cyrl-uz/home.json +0 -19
  188. package/dist/generators/languages/templates/src/main/webapp/i18n/uz-Latn-uz/home.json +0 -19
  189. package/dist/generators/languages/templates/src/main/webapp/i18n/vi/home.json +0 -19
  190. package/dist/generators/languages/templates/src/main/webapp/i18n/zh-cn/home.json +0 -19
  191. package/dist/generators/languages/templates/src/main/webapp/i18n/zh-tw/home.json +0 -19
  192. package/dist/generators/server/templates/src/main/java/_package_/config/LocaleConfiguration_imperative.java.ejs +0 -43
  193. package/dist/generators/server/templates/src/main/java/_package_/config/LocaleConfiguration_reactive.java.ejs +0 -184
  194. package/dist/generators/statistics.js +0 -223
@@ -1,19 +0,0 @@
1
- {
2
- "home": {
3
- "title": "Merhaba, Java Hipster!",
4
- "subtitle": "Burası Ana Sayfanız",
5
- "logged": {
6
- "message": "\"{{username}}\" olarak giriş yaptınız."
7
- },
8
- "question": "JHipster hakkında sorularınız için:",
9
- "link": {
10
- "homepage": "JHipster ana sayfa",
11
- "stackoverflow": "Stack Overflow'da JHipster",
12
- "bugtracker": "JHipster hata yönetimi",
13
- "chat": "JHipster genel sohbet odası",
14
- "follow": "Twitter'da @jhipster adresinden ulaşabilirsiniz"
15
- },
16
- "like": "JHipster'ı beğendiyseniz yıldız vermeyi unutmayın",
17
- "github": "GitHub"
18
- }
19
- }
@@ -1,19 +0,0 @@
1
- {
2
- "home": {
3
- "title": "Ласкаво просимо, Java hipster!",
4
- "subtitle": "Це ваша домашня сторінка",
5
- "logged": {
6
- "message": "Ви ввійшли як користувач \"{{username}}\"."
7
- },
8
- "question": "Якщо у вас виникли питання по JHipster:",
9
- "link": {
10
- "homepage": "Домашня сторінка JHipster",
11
- "stackoverflow": "JHipster на Stack Overflow",
12
- "bugtracker": "Баг трекер JHipster",
13
- "chat": "Публічна чат кімната JHipster ",
14
- "follow": "Користувач @jhipster в Twitter"
15
- },
16
- "like": "Якщо вам подобається JHipster, не забудьте дати нам зірку на",
17
- "github": "GitHub"
18
- }
19
- }
@@ -1,148 +0,0 @@
1
- {
2
- "global": {
3
- "browsehappy":
4
- "Сизнинг браузерингиз <strong>эски</strong>. Илтимос, браузерингизни<a href=\"http://browsehappy.com/?locale=en\">янгиланг</a>.",
5
- "menu": {
6
- "home": "Бош саҳифа",
7
- "jhipster-needle-menu-add-element": "JHipster will add additional menu entries here (do not translate!)",
8
- "entities": {
9
- "main": "Маълумотлар",
10
- "jhipster-needle-menu-add-entry": "JHipster will add additional entities here (do not translate!)"
11
- },
12
- "account": {
13
- "main": "Профил",
14
- "settings": "Созламалар",
15
- "password": "Парол",
16
- "sessions": "Сессиялар",
17
- "login": "Кириш",
18
- "logout": "Чиқиш",
19
- "register": "Рўйхатдан ўтиш"
20
- },
21
- "admin": {
22
- "main": "Бошқарув",
23
- "userManagement": "Фойдалаувчилар бошқаруви",
24
- "tracker": "Фойдалаувчи кузатуви",
25
- "metrics": "Метрикалар",
26
- "health": "Ҳолат",
27
- "configuration": "Созламалар",
28
- "logs": "Логлар",
29
- "apidocs": "API",
30
- "database": "Маълумотлар базаси",
31
- "jhipster-needle-menu-add-admin-element": "JHipster will add additional menu entries here (do not translate!)"
32
- },
33
- "language": "Тил"
34
- },
35
- "form": {
36
- "username": "Логин",
37
- "username.placeholder": "Сизнинг логинингиз",
38
- "currentpassword.label": "Ҳозирги паролингиз",
39
- "currentpassword.placeholder": "Ҳозирги паролингиз",
40
- "newpassword.label": "Янги парол",
41
- "newpassword.placeholder": "Янги парол",
42
- "confirmpassword": "Янги паролнинг тасдиғи",
43
- "confirmpassword.placeholder": "Янги паролнинг тасдиғи",
44
- "email": "Email",
45
- "email.placeholder": "Сизнинг email"
46
- },
47
- "messages": {
48
- "info": {
49
- "authenticated": {
50
- "prefix": "Агар ",
51
- "link": "автаризациядан ўтишни",
52
- "suffix":
53
- ", хоҳласангиз, мавжуд фойдаланувчини текшириб кўринг:<<br/>- Маъмур (логин=\"admin\" and парол=\"admin\") <br/>- Оддий фойдаланувчи (логин=\"user\" and парол=\"user\")."
54
- },
55
- "register": {
56
- "noaccount": "Сиз рўйхатдан ўтмаганмисиз?",
57
- "link": "Янги фойдаланувчи қўшинг"
58
- }
59
- },
60
- "error": {
61
- "dontmatch": "Парол ва унинг тасдиғи мос келмади!"
62
- },
63
- "validate": {
64
- "newpassword": {
65
- "required": "Парол киритилиши зарур.",
66
- "minlength": "Парол узунлиги камида 4 ҳарфдан иборат бўлсин.",
67
- "maxlength": "Парол 50 ҳарфдан узун бўлмасин.",
68
- "strength": "Парол мураккаблиги:"
69
- },
70
- "confirmpassword": {
71
- "required": "Парол тасдиғи киритилиши зарур.",
72
- "minlength": "Парол тасдиғи узунлиги камида 4 ҳарфдан иборат бўлсин.",
73
- "maxlength": "Парол тасдиғи 50 ҳарфдан узун бўлмасин."
74
- },
75
- "email": {
76
- "required": "Email киритилиши зарур.",
77
- "invalid": "Илтимос, тўғри Email киритинг.",
78
- "minlength": "Email узунлиги камида 5 ҳарфдан иборат бўлсин.",
79
- "maxlength": "Email 50 ҳарфдан узун бўлмасин."
80
- }
81
- }
82
- },
83
- "field": {
84
- "id": "ID"
85
- },
86
- "ribbon": {
87
- "dev": "Созланмоқда"
88
- },
89
- "item-count": "{{total}} тадан ({{first}} - {{second}}) - лари."
90
- },
91
- "entity": {
92
- "action": {
93
- "addblob": "Бинар маълумот қўшиш",
94
- "addimage": "Расм қўшиш",
95
- "back": "Орқага",
96
- "cancel": "Бекор қилиш",
97
- "delete": "Ўчириш",
98
- "edit": "Ўзгартириш",
99
- "open": "Очиш",
100
- "save": "Сақлаш",
101
- "view": "Кўриш",
102
- "show": "Show {{otherEntity}}"
103
- },
104
- "detail": {
105
- "field": "Майдон",
106
- "value": "Қиймат"
107
- },
108
- "delete": {
109
- "title": "Ўчириш амалини тасдиқланг"
110
- },
111
- "validation": {
112
- "required": "Ушбу майдон тўлдирилиши шарт.",
113
- "minlength": "Ушбу майдон камида {{min}} белгидан иборат бўлиши зарур.",
114
- "maxlength": "Ушбу майдон {{max}} белгидан ошмаслиги зарур.",
115
- "min": "Ушбу майдоннинг энг кичик қиймати {{min}} бўлиши зарур.",
116
- "max": "Ушбу майдон қиймати {{ max }} дан ошмаслиги зарур.",
117
- "minbytes": "Ушбу майдон камида {{min}} байт бўлиши зарур.",
118
- "maxbytes": "Ушбу майдон {{max}} байтдан ошмаслиги зарур.",
119
- "pattern": "Ушбу майдон {{ pattern }} форматида бўлиши зарур.",
120
- "number": "Ушбу майдон сон бўлиши шарт.",
121
- "datetimelocal": "Ушбу майдон сана - вақт бирлиги бўлиши зарур.",
122
- "patternLogin": "Ушбу майдон фақат ҳарф, рақам ёки email манзил бўлиши мумкин."
123
- },
124
- "filters": {
125
- "set": "Following filters are set",
126
- "clear": "Clear filter",
127
- "clearAll": "Clear all filters"
128
- }
129
- },
130
- "error": {
131
- "internalServerError": "Ички хатолик",
132
- "server.not.reachable": "Серверга боғланиш имкони йўқ",
133
- "url.not.found": "Маълумот топилмади",
134
- "NotNull": "{{ fieldName }} майдони бўш бўлиши мумкин эмас!",
135
- "Size": "{{ fieldName }} майдонинг ўлчами нотўғри!",
136
- "userexists": "Ушбу фойдаланувчи номи тизимда мавжуд!",
137
- "emailexists": "Email аллақачон тизимда мавжуд!",
138
- "idexists": "Янги {{ entityName }} IDси тизимда мавжуд ID бўлмаслиги керак.",
139
- "idnull": "Нотўғри ID",
140
- "idinvalid": "Invalid Id",
141
- "idnotfound": "ID cannot be found",
142
- "file": {
143
- "could.not.extract": "Файлни чиқариб бўлмайди",
144
- "not.image": "Файл расм бўлиши керак эди, лекин \"{{ fileType }}\" топилди"
145
- }
146
- },
147
- "footer": "Саҳифа таг қисми"
148
- }
@@ -1,19 +0,0 @@
1
- {
2
- "home": {
3
- "title": "Java Hipster га, ҳуш келибсиз!",
4
- "subtitle": "Бу сизнинг бош саҳифангиз",
5
- "logged": {
6
- "message": "Сиз \"{{username}}\" фойдаланувчиси сифатида кирдиз."
7
- },
8
- "question": "JHipster бўйича саволларингиз бўлса::",
9
- "link": {
10
- "homepage": "JHipster бош саҳифаси",
11
- "stackoverflow": "JHipster Stack Overflowда",
12
- "bugtracker": "JHipster баг трекери",
13
- "chat": "JHipster жамоавий чат хонаси",
14
- "follow": "Twitterдаги логини @jhipster"
15
- },
16
- "like": "Агар JHipster сизга ёқса, ушбу манзилда юлдузча қуйишни унунманг",
17
- "github": "GitHub"
18
- }
19
- }
@@ -1,19 +0,0 @@
1
- {
2
- "home": {
3
- "title": "Java Hipsterga, hush kelibsiz!",
4
- "subtitle": "Bosh sahifa",
5
- "logged": {
6
- "message": "Siz \"{{username}}\" foydalanuvchisi sifatida kirdiz."
7
- },
8
- "question": "JHipster bo`yicha savollaringiz bo`lsa:",
9
- "link": {
10
- "homepage": "JHipster bosh sahifasi",
11
- "stackoverflow": "JHipster Stack Overflow",
12
- "bugtracker": "JHipster bag trekeri",
13
- "chat": "JHipster umumiy chat xonasi",
14
- "follow": "Twitterdagi logini @jhipster"
15
- },
16
- "like": "Agar JHipster sizga yoqsa, ushbu manzilda yulduzcha quyishni ununmang",
17
- "github": "GitHub"
18
- }
19
- }
@@ -1,19 +0,0 @@
1
- {
2
- "home": {
3
- "title": "Chào mừng bạn đến với Java Hipster!",
4
- "subtitle": "Đây là trang chủ của bạn",
5
- "logged": {
6
- "message": "Bạn đang đăng nhập bằng tài khoản \"{{username}}\"."
7
- },
8
- "question": "Nếu bạn có bất kỳ câu hỏi nào về JHipster vui lòng truy cập:",
9
- "link": {
10
- "homepage": "Trang chủ JHipster",
11
- "stackoverflow": "JHipster trên Stack Overflow",
12
- "bugtracker": "Theo dõi các lỗi JHipster",
13
- "chat": "Phòng chat công cộng JHipster",
14
- "follow": "Theo dõi @jhipster trên Twitter"
15
- },
16
- "like": "Nếu bạn thích JHipster, đừng quên cho chúng tôi thêm một ngôi sao trên",
17
- "github": "GitHub"
18
- }
19
- }
@@ -1,19 +0,0 @@
1
- {
2
- "home": {
3
- "title": "欢迎, Java Hipster!",
4
- "subtitle": "这里是首页",
5
- "logged": {
6
- "message": "您目前是以 \"{{username}}\" 账号登录."
7
- },
8
- "question": "如果您有任何有关 JHipster 的问题, 可以查阅下列资源:",
9
- "link": {
10
- "homepage": "JHipster 首頁",
11
- "stackoverflow": "Stack Overflow 上关于 JHipster 的讨论",
12
- "bugtracker": "JHipster 的缺陷追踪",
13
- "chat": "JHipster public chat room",
14
- "follow": "在 Twitter 上联络 @jhipster"
15
- },
16
- "like": "如果您喜欢 JHipster, 请记得给我们加星在",
17
- "github": "GitHub"
18
- }
19
- }
@@ -1,19 +0,0 @@
1
- {
2
- "home": {
3
- "title": "Java 文青,歡迎!",
4
- "subtitle": "這裡是您的首頁",
5
- "logged": {
6
- "message": "您目前是用 “{{username}}” 帳號登入。"
7
- },
8
- "question": "要是您對 JHipster 有任何疑問,可以到:",
9
- "link": {
10
- "homepage": "JHipster 首頁",
11
- "stackoverflow": "Stack Overflow 上標有 JHipster 的問題",
12
- "bugtracker": "JHipster 議題管理",
13
- "chat": "JHipster 公開聊天室",
14
- "follow": "在 Twitter 上關注 @jhipster"
15
- },
16
- "like": "如果您喜歡 JHipster,別忘了給我們星星,馬上連到",
17
- "github": "GitHub"
18
- }
19
- }
@@ -1,43 +0,0 @@
1
- <%#
2
- Copyright 2013-2024 the original author or authors from the JHipster project.
3
-
4
- This file is part of the JHipster project, see https://www.jhipster.tech/
5
- for more information.
6
-
7
- Licensed under the Apache License, Version 2.0 (the "License");
8
- you may not use this file except in compliance with the License.
9
- You may obtain a copy of the License at
10
-
11
- https://www.apache.org/licenses/LICENSE-2.0
12
-
13
- Unless required by applicable law or agreed to in writing, software
14
- distributed under the License is distributed on an "AS IS" BASIS,
15
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- See the License for the specific language governing permissions and
17
- limitations under the License.
18
- -%>
19
- package <%= packageName %>.config;
20
-
21
- import tech.jhipster.config.locale.AngularCookieLocaleResolver;
22
-
23
- import org.springframework.context.annotation.Bean;
24
- import org.springframework.context.annotation.Configuration;
25
- import org.springframework.web.servlet.LocaleResolver;
26
- import org.springframework.web.servlet.config.annotation.*;
27
- import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
28
-
29
- @Configuration
30
- public class LocaleConfiguration implements WebMvcConfigurer {
31
-
32
- @Bean
33
- public LocaleResolver localeResolver() {
34
- return new AngularCookieLocaleResolver("NG_TRANSLATE_LANG_KEY");
35
- }
36
-
37
- @Override
38
- public void addInterceptors(InterceptorRegistry registry) {
39
- LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
40
- localeChangeInterceptor.setParamName("language");
41
- registry.addInterceptor(localeChangeInterceptor);
42
- }
43
- }
@@ -1,184 +0,0 @@
1
- <%#
2
- Copyright 2013-2024 the original author or authors from the JHipster project.
3
-
4
- This file is part of the JHipster project, see https://www.jhipster.tech/
5
- for more information.
6
-
7
- Licensed under the Apache License, Version 2.0 (the "License");
8
- you may not use this file except in compliance with the License.
9
- You may obtain a copy of the License at
10
-
11
- https://www.apache.org/licenses/LICENSE-2.0
12
-
13
- Unless required by applicable law or agreed to in writing, software
14
- distributed under the License is distributed on an "AS IS" BASIS,
15
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- See the License for the specific language governing permissions and
17
- limitations under the License.
18
- -%>
19
- package <%= packageName %>.config;
20
-
21
- import org.apache.commons.logging.Log;
22
- import org.apache.commons.logging.LogFactory;
23
- import org.springframework.context.annotation.Bean;
24
- import org.springframework.context.annotation.Configuration;
25
- import org.springframework.context.annotation.Import;
26
- import org.springframework.context.i18n.LocaleContext;
27
- import org.springframework.context.i18n.LocaleContextHolder;
28
- import org.springframework.context.i18n.SimpleLocaleContext;
29
- import org.springframework.context.i18n.TimeZoneAwareLocaleContext;
30
- import org.springframework.http.HttpCookie;
31
- import org.springframework.http.ResponseCookie;
32
- import org.springframework.http.server.reactive.ServerHttpResponse;
33
- import org.springframework.util.Assert;
34
- import org.springframework.util.StringUtils;
35
- import org.springframework.web.server.ServerWebExchange;
36
- import org.springframework.web.server.WebFilter;
37
- import org.springframework.web.server.i18n.LocaleContextResolver;
38
-
39
- import jakarta.annotation.Nonnull;
40
- import java.time.Duration;
41
- import java.util.Locale;
42
- import java.util.TimeZone;
43
-
44
- @Configuration
45
- public class LocaleConfiguration {
46
-
47
- @Bean(name = "localeContextResolver")
48
- public LocaleContextResolver localeContextResolver() {
49
- return new AngularCookieLocaleContextResolver();
50
- }
51
-
52
- @Bean
53
- public WebFilter localeChangeFilter(LocaleContextResolver localeContextResolver) {
54
- return (exchange, chain) -> {
55
- // Find locale change in query param. Must also look form params ?
56
- String newLocale = exchange.getRequest().getQueryParams().getFirst("language");
57
- if (newLocale != null) {
58
- localeContextResolver.setLocaleContext(exchange, new SimpleLocaleContext(StringUtils.parseLocaleString(newLocale)));
59
- }
60
- // Proceed in any case.
61
- return chain.filter(exchange);
62
- };
63
- }
64
-
65
- static class AngularCookieLocaleContextResolver implements LocaleContextResolver {
66
-
67
- private static final String LOCALE_REQUEST_ATTRIBUTE_NAME = AngularCookieLocaleContextResolver.class.getName() + ".LOCALE";
68
-
69
- private static final String TIME_ZONE_REQUEST_ATTRIBUTE_NAME = AngularCookieLocaleContextResolver.class.getName() + ".TIME_ZONE";
70
-
71
- private static final String QUOTE = "%22";
72
-
73
- private static final String COOKIE_NAME = "NG_TRANSLATE_LANG_KEY";
74
-
75
- private static final String COOKIE_PATH = "/";
76
-
77
- protected final Log logger = LogFactory.getLog(getClass());
78
-
79
- @Override
80
- @Nonnull
81
- public LocaleContext resolveLocaleContext(@Nonnull ServerWebExchange exchange) {
82
- parseLocaleCookieIfNecessary(exchange);
83
- return new TimeZoneAwareLocaleContext() {
84
- @Override
85
- public Locale getLocale() {
86
- return (Locale) exchange.getAttribute(LOCALE_REQUEST_ATTRIBUTE_NAME);
87
- }
88
-
89
- @Override
90
- public TimeZone getTimeZone() {
91
- return (TimeZone) exchange.getAttribute(TIME_ZONE_REQUEST_ATTRIBUTE_NAME);
92
- }
93
- };
94
- }
95
-
96
- @Override
97
- public void setLocaleContext(@Nonnull ServerWebExchange exchange, LocaleContext localeContext) {
98
- Assert.notNull(exchange.getResponse()
99
- , "ServerHttpResponse is required for AngularCookieLocaleContextResolver");
100
-
101
- Locale locale = null;
102
- TimeZone timeZone = null;
103
- if (localeContext != null) {
104
- locale = localeContext.getLocale();
105
- if (localeContext instanceof TimeZoneAwareLocaleContext) {
106
- timeZone = ((TimeZoneAwareLocaleContext) localeContext).getTimeZone();
107
- }
108
- addCookie(exchange.getResponse(),
109
- QUOTE + (locale != null ? locale.toString() : "-") + (timeZone != null ? ' ' + timeZone.getID() : "") + QUOTE);
110
- } else {
111
- removeCookie(exchange.getResponse());
112
- }
113
- exchange.getAttributes().put(LOCALE_REQUEST_ATTRIBUTE_NAME,
114
- (locale != null ? locale : LocaleContextHolder.getLocale(exchange.getLocaleContext())));
115
- if (timeZone != null) {
116
- exchange.getAttributes().put(TIME_ZONE_REQUEST_ATTRIBUTE_NAME, timeZone);
117
- } else {
118
- exchange.getAttributes().remove(TIME_ZONE_REQUEST_ATTRIBUTE_NAME);
119
- }
120
- }
121
-
122
- private void addCookie(@Nonnull ServerHttpResponse response, String cookieValue) {
123
- Assert.notNull(response, "ServerHttpResponse must not be null");
124
- ResponseCookie cookie = ResponseCookie.from(COOKIE_NAME, cookieValue)
125
- .path(COOKIE_PATH)
126
- .build();
127
- response.addCookie(cookie);
128
- if (logger.isDebugEnabled()) {
129
- logger.debug("Added cookie with name [" + COOKIE_NAME + "] and value [" + cookieValue + "]");
130
- }
131
- }
132
-
133
- private void removeCookie(@Nonnull ServerHttpResponse response) {
134
- Assert.notNull(response, "ServerHttpResponse must not be null");
135
- ResponseCookie cookie = ResponseCookie.from(COOKIE_NAME, "")
136
- .path(COOKIE_PATH)
137
- .maxAge(Duration.ZERO)
138
- .build();
139
- response.addCookie(cookie);
140
- if (logger.isDebugEnabled()) {
141
- logger.debug("Removed cookie with name [" + COOKIE_NAME + "]");
142
- }
143
- }
144
-
145
- private void parseLocaleCookieIfNecessary(ServerWebExchange exchange) {
146
- if (exchange.getAttribute(LOCALE_REQUEST_ATTRIBUTE_NAME) == null) {
147
- // Retrieve and parse cookie value.
148
- HttpCookie cookie = exchange.getRequest().getCookies().getFirst(COOKIE_NAME);
149
- Locale locale = null;
150
- TimeZone timeZone = null;
151
- if (cookie != null) {
152
- String value = cookie.getValue();
153
-
154
- // Remove the double quote
155
- value = StringUtils.replace(value, QUOTE, "");
156
-
157
- String localePart = value;
158
- String timeZonePart = null;
159
- int spaceIndex = localePart.indexOf(' ');
160
- if (spaceIndex != -1) {
161
- localePart = value.substring(0, spaceIndex);
162
- timeZonePart = value.substring(spaceIndex + 1);
163
- }
164
- locale = !"-".equals(localePart) ? StringUtils.parseLocaleString(localePart.replace('-', '_')) : null;
165
- if (timeZonePart != null) {
166
- timeZone = StringUtils.parseTimeZoneString(timeZonePart);
167
- }
168
- if (logger.isTraceEnabled()) {
169
- logger.trace("Parsed cookie value [" + cookie.getValue() + "] into locale '" + locale +
170
- "'" + (timeZone != null ? " and time zone '" + timeZone.getID() + "'" : ""));
171
- }
172
- }
173
- if (locale != null) {
174
- exchange.getAttributes().put(LOCALE_REQUEST_ATTRIBUTE_NAME, locale);
175
- }
176
- if (timeZone != null) {
177
- exchange.getAttributes().put(TIME_ZONE_REQUEST_ATTRIBUTE_NAME, timeZone);
178
- } else {
179
- exchange.getAttributes().remove(TIME_ZONE_REQUEST_ATTRIBUTE_NAME);
180
- }
181
- }
182
- }
183
- }
184
- }