Skip to content

Commit

Permalink
add spanish language - [WEB-5403] (#25922)
Browse files Browse the repository at this point in the history
Co-authored-by: bgdeutsch <[email protected]>
  • Loading branch information
StefonSimmons and bgdeutsch authored Nov 7, 2024
1 parent 156d917 commit 4f12836
Show file tree
Hide file tree
Showing 363 changed files with 7,989 additions and 726 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ build_preview:
- typesense.config.json
after_script:
- |
if [ -s $PREVIEW_ERROR_LOG && $CI_JOB_STATUS != 'success' ]; then
if [ -s $PREVIEW_ERROR_LOG ] && [ $CI_JOB_STATUS != 'success' ]; then
echo "Error Detected: $(cat $PREVIEW_ERROR_LOG)";
fi # Output the error to the console
interruptible: true
Expand Down
2 changes: 1 addition & 1 deletion assets/scripts/components/global-modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const doOnLoad = () => {
lang = ddc.lang;
}

if (lang === 'fr' || lang === 'ja' || lang === 'ko') {
if (lang === 'fr' || lang === 'ja' || lang === 'ko' || lang === 'es') {
langParam = `lang=${lang}`;
} else {
langParam = '';
Expand Down
2 changes: 1 addition & 1 deletion assets/scripts/tests/lang-redirects.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe(`Ensure EN site loads and redirects as expected `, () => {
});

it('should ignore when lang_pref is not in allowedLanguages', () => {
window.location.href = 'http://localhost:3000/?lang_pref=es';
window.location.href = 'http://localhost:3000/?lang_pref=it';

redirect.handleLanguageBasedRedirects();

Expand Down
3 changes: 3 additions & 0 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ module:
- source: content/ko
target: content
lang: ko
- source: content/es
target: content
lang: es
- source: static
target: static
- source: layouts
Expand Down
3 changes: 3 additions & 0 deletions config/_default/languages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ ja:
ko:
languageName: "한국어"
weight: 4
es:
languageName: "Español"
weight: -1
Loading

0 comments on commit 4f12836

Please sign in to comment.