mirror of https://github.com/snachodog/mybuddy.git
Add Spanish translations
This commit is contained in:
parent
f0fdbaca42
commit
f6b5126dfd
|
@ -360,6 +360,8 @@ Baby Buddy includes translation support as of v1.2.2. Language can be set on a p
|
||||||
|
|
||||||
:de: German
|
:de: German
|
||||||
|
|
||||||
|
:mexico: :es: Spanish
|
||||||
|
|
||||||
:sweden: Swedish
|
:sweden: Swedish
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
|
@ -128,6 +128,7 @@ LANGUAGES = [
|
||||||
('en', _('English')),
|
('en', _('English')),
|
||||||
('fr', _('French')),
|
('fr', _('French')),
|
||||||
('de', _('German')),
|
('de', _('German')),
|
||||||
|
('es', _('Spanish')),
|
||||||
('sv', _('Swedish')),
|
('sv', _('Swedish')),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ module.exports = {
|
||||||
dest: basePath + 'plotly-locales/',
|
dest: basePath + 'plotly-locales/',
|
||||||
files: [
|
files: [
|
||||||
'node_modules/plotly.js/dist/plotly-locale-de.js',
|
'node_modules/plotly.js/dist/plotly-locale-de.js',
|
||||||
|
'node_modules/plotly.js/dist/plotly-locale-es.js',
|
||||||
'node_modules/plotly.js/dist/plotly-locale-fr.js',
|
'node_modules/plotly.js/dist/plotly-locale-fr.js',
|
||||||
'node_modules/plotly.js/dist/plotly-locale-sv.js'
|
'node_modules/plotly.js/dist/plotly-locale-sv.js'
|
||||||
]
|
]
|
||||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -29,6 +29,9 @@
|
||||||
{% language 'de' %}
|
{% language 'de' %}
|
||||||
<script src="{% static "babybuddy/plotly-locales/plotly-locale-de.js" %}"></script>
|
<script src="{% static "babybuddy/plotly-locales/plotly-locale-de.js" %}"></script>
|
||||||
{% endlanguage %}
|
{% endlanguage %}
|
||||||
|
{% language 'es' %}
|
||||||
|
<script src="{% static "babybuddy/plotly-locales/plotly-locale-es.js" %}"></script>
|
||||||
|
{% endlanguage %}
|
||||||
{% language 'fr' %}
|
{% language 'fr' %}
|
||||||
<script src="{% static "babybuddy/plotly-locales/plotly-locale-fr.js" %}"></script>
|
<script src="{% static "babybuddy/plotly-locales/plotly-locale-fr.js" %}"></script>
|
||||||
{% endlanguage %}
|
{% endlanguage %}
|
||||||
|
|
Loading…
Reference in New Issue