Commit e93a095 1 parent 6c9f957 commit e93a095 Copy full SHA for e93a095
File tree 7 files changed +36
-3
lines changed
7 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 27
27
28
28
def get_text_for_translations (root_path ):
29
29
assets_file = (
30
- root_path + "/env/plugins/aspects/apps/superset/pythonpath /assets.yaml"
30
+ root_path + "/env/plugins/aspects/apps/superset/localization /assets.yaml"
31
31
)
32
32
33
33
strings = []
@@ -96,7 +96,7 @@ def compile_translations(root_path):
96
96
tx .fetch_translations ()
97
97
98
98
translation_file = (
99
- "tutoraspects/templates/aspects/apps/superset/pythonpath /locale.yaml"
99
+ "tutoraspects/templates/aspects/apps/superset/localization /locale.yaml"
100
100
)
101
101
file = open (translation_file , "w" )
102
102
Original file line number Diff line number Diff line change @@ -211,6 +211,8 @@ spec:
211
211
name: docker
212
212
- mountPath: /app/pythonpath
213
213
name: pythonpath
214
+ - mountPath: /app/localization
215
+ name: localization
214
216
- mountPath: /app/security
215
217
name: security
216
218
volumes:
@@ -220,6 +222,9 @@ spec:
220
222
- name: pythonpath
221
223
configMap:
222
224
name: superset-pythonpath
225
+ - name: localization
226
+ configMap:
227
+ name: superset-localization
223
228
- name: security
224
229
configMap:
225
230
name: superset-security
@@ -300,6 +305,8 @@ spec:
300
305
name: docker
301
306
- mountPath: /app/pythonpath
302
307
name: pythonpath
308
+ - mountPath: /app/localization
309
+ name: localization
303
310
- mountPath: /app/security
304
311
name: security
305
312
volumes:
@@ -309,6 +316,9 @@ spec:
309
316
- name: pythonpath
310
317
configMap:
311
318
name: superset-pythonpath
319
+ - name: localization
320
+ configMap:
321
+ name: superset-localization
312
322
- name: security
313
323
configMap:
314
324
name: superset-security
@@ -389,6 +399,8 @@ spec:
389
399
name: docker
390
400
- mountPath: /app/pythonpath
391
401
name: pythonpath
402
+ - mountPath: /app/localization
403
+ name: localization
392
404
- mountPath: /app/security
393
405
name: security
394
406
volumes:
@@ -398,6 +410,9 @@ spec:
398
410
- name: pythonpath
399
411
configMap:
400
412
name: superset-pythonpath
413
+ - name: localization
414
+ configMap:
415
+ name: superset-localization
401
416
- name: security
402
417
configMap:
403
418
name: superset-security
Original file line number Diff line number Diff line change @@ -216,6 +216,8 @@ spec:
216
216
name: docker
217
217
- mountPath: /app/pythonpath
218
218
name: pythonpath
219
+ - mountPath: /app/localization
220
+ name: localization
219
221
- mountPath: /app/security
220
222
name: security
221
223
- mountPath: /app/assets
@@ -227,6 +229,9 @@ spec:
227
229
- name: pythonpath
228
230
configMap:
229
231
name: superset-pythonpath
232
+ - name: localization
233
+ configMap:
234
+ name: superset-localization
230
235
- name: security
231
236
configMap:
232
237
name: superset-security
@@ -296,6 +301,8 @@ spec:
296
301
name: docker
297
302
- mountPath: /app/pythonpath
298
303
name: pythonpath
304
+ - mountPath: /app/localization
305
+ name: localization
299
306
- mountPath: /app/security
300
307
name: security
301
308
- mountPath: /app/assets
@@ -307,6 +314,9 @@ spec:
307
314
- name: pythonpath
308
315
configMap:
309
316
name: superset-pythonpath
317
+ - name: localization
318
+ configMap:
319
+ name: superset-localization
310
320
- name: security
311
321
configMap:
312
322
name: superset-security
Original file line number Diff line number Diff line change 68
68
labels:
69
69
app.kubernetes.io/name: superset
70
70
71
+ - name: superset-localization
72
+ files:{% for file in "aspects/apps/superset/localization"|walk_templates %}
73
+ - plugins/{{ file }}{% endfor %}
74
+ options:
75
+ labels:
76
+ app.kubernetes.io/name: superset
77
+
71
78
- name: superset-security
72
79
files:
73
80
- plugins/aspects/apps/superset/security/roles.json
File renamed without changes.
Original file line number Diff line number Diff line change 33
33
34
34
FILE_NAME_ATTRIBUTE = "_file_name"
35
35
36
- TRANSLATIONS_FILE_PATH = "/app/pythonpath /locale.yaml"
36
+ TRANSLATIONS_FILE_PATH = "/app/localization /locale.yaml"
37
37
ASSETS_FILE_PATH = "/app/pythonpath/assets.yaml"
38
38
39
39
merged_data = {}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ image: {{ DOCKER_IMAGE_SUPERSET }}
3
3
volumes:
4
4
- ../../env/plugins/aspects/apps/superset/docker:/app/docker
5
5
- ../../env/plugins/aspects/apps/superset/pythonpath:/app/pythonpath
6
+ - ../../env/plugins/aspects/apps/superset/localization:/app/localization
6
7
- ../../env/plugins/aspects/apps/superset/security:/app/security
7
8
- ../../env/plugins/aspects/apps/superset/superset_home:/app/superset_home
8
9
- ../../env/plugins/aspects/apps/superset/assets:/app/assets
You can’t perform that action at this time.
0 commit comments