Add Spanish translations

This commit is contained in:
Christopher C. Wells 2020-01-16 19:14:22 -08:00
parent f0fdbaca42
commit f6b5126dfd
6 changed files with 1279 additions and 0 deletions

View File

@ -360,6 +360,8 @@ Baby Buddy includes translation support as of v1.2.2. Language can be set on a p
:de: German
:mexico: :es: Spanish
:sweden: Swedish
## API

View File

@ -128,6 +128,7 @@ LANGUAGES = [
('en', _('English')),
('fr', _('French')),
('de', _('German')),
('es', _('Spanish')),
('sv', _('Swedish')),
]

View File

@ -15,6 +15,7 @@ module.exports = {
dest: basePath + 'plotly-locales/',
files: [
'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-sv.js'
]

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -29,6 +29,9 @@
{% language 'de' %}
<script src="{% static "babybuddy/plotly-locales/plotly-locale-de.js" %}"></script>
{% endlanguage %}
{% language 'es' %}
<script src="{% static "babybuddy/plotly-locales/plotly-locale-es.js" %}"></script>
{% endlanguage %}
{% language 'fr' %}
<script src="{% static "babybuddy/plotly-locales/plotly-locale-fr.js" %}"></script>
{% endlanguage %}