Skip to content

Commit

Permalink
Add missing es for the spanish translation in some places
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-H committed Feb 27, 2021
1 parent 904cc9f commit 1e562f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CLI/Commands/CacheNavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln('<info>Regenerating navigation cache...</info>');

$versions = array_keys(VersionsService::getAvailableVersions());
$languages = ['en', 'ru', 'nl'];
$languages = ['en', 'ru', 'nl', 'es'];
foreach ($versions as $version) {
foreach ($languages as $language) {
$output->writeln('- ' . $version. '/' . $language . '');
Expand Down
2 changes: 1 addition & 1 deletion src/CLI/Commands/Index/All.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
// Wipe the current index

$versions = array_keys(VersionsService::getAvailableVersions(false));
$languages = ['en', 'ru', 'nl'];
$languages = ['en', 'ru', 'nl', 'es'];

$count = 0;
foreach ($versions as $version) {
Expand Down
2 changes: 1 addition & 1 deletion src/Views/Doc.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private function getSuggestedLanguages(Request $request, PageRequest $pageReques

$currentLanguage = $pageRequest->getLanguage();
$suggestions = [];
$documentationLanguages = ['en', 'ru', 'nl'];
$documentationLanguages = ['en', 'ru', 'nl', 'es'];
// look through sorted list and use first one that matches a supported language
foreach ($requestedLanguages as $requestLanguage => $priority) {
foreach ($documentationLanguages as $docLanguage) {
Expand Down

0 comments on commit 1e562f8

Please sign in to comment.