Skip to content

Commit

Permalink
removed default from other languages
Browse files Browse the repository at this point in the history
  • Loading branch information
mathijs-bb committed Sep 30, 2024
1 parent d8e935e commit 09f5ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Apps.Wordpress/Actions/PolylangActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public async Task<LanguagesResponse> GetLanguages()
{
Languages = result,
DefaultLanguageCode = result.FirstOrDefault(x => x.IsDefault)?.Locale,
OtherLanguageCodes = result.Select(x => x.Locale),
OtherLanguageCodes = result.Where(x => !x.IsDefault).Select(x => x.Locale),
};
}
}

0 comments on commit 09f5ce6

Please sign in to comment.