Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing Languages to Web #2280

Merged
merged 12 commits into from
Dec 31, 2020
Merged

Add missing Languages to Web #2280

merged 12 commits into from
Dec 31, 2020

Conversation

Artiume
Copy link
Contributor

@Artiume Artiume commented Dec 28, 2020

Changes

Issues

#2267

@dkanada dkanada added the stable backport Backport into the next stable release label Dec 28, 2020
@Artiume Artiume changed the title Add Tamil to Web Add missing Languages to Web Dec 28, 2020
Copy link
Member

@thornbill thornbill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Artiume
Copy link
Contributor Author

Artiume commented Dec 29, 2020

for locales, would i use 'bn_bd': bn, or use a dash?

@Artiume
Copy link
Contributor Author

Artiume commented Dec 29, 2020

esperato has no locale, ignore it or give it something else?

@thornbill
Copy link
Member

It looks like bn and eo should work https://github.com/date-fns/date-fns/tree/master/src/locale

<option value="be-BY">Belarusian (Belarus)</option>
<option value="bg-BG">Bulgarian (Bulgaria)</option>
<option value="be-BY">Belarusian</option>
<option value="bn_BD">Bengali (Bangladesh)</option>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of these don't exist as date-fns locales. Should they all be?

Also some of them don't match the name of the locales in dfnshelper. There seems like there may be another place where they get normalized as some of the existing locales also don't match, but I'm not familiar with where or how that happens.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was hoping you knew lol. I noticed it was being parsed differently so I wasn't sure how to verify my work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our locales are here: https://github.com/jellyfin/jellyfin-web/blob/master/src/scripts/site.js#L71

The strings in dfnshelper matches those locales using our code as a key with the date fns locale object as value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mr wasnt a locale listed so i removed it, it should be good after that.

@thornbill thornbill dismissed their stale review December 30, 2020 15:11

The changes have been addressed. Added a comment with some additional questions.

@sonarcloud
Copy link

sonarcloud bot commented Dec 31, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
71.9% 71.9% Duplication

@joshuaboniface joshuaboniface merged commit b7eeebd into jellyfin:master Dec 31, 2020
@Artiume Artiume deleted the patch-5 branch December 31, 2020 23:49
joshuaboniface added a commit that referenced this pull request Jan 1, 2021
(cherry picked from commit b7eeebd)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
@joshuaboniface joshuaboniface removed the stable backport Backport into the next stable release label Jan 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants