Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

add a new language - Ukrainian && fix bug with dayjs locale#472

Merged
priscilawebdev merged 10 commits intoverdaccio:masterfrom
mikollaay:feature/ua-lang
May 3, 2020
Merged

add a new language - Ukrainian && fix bug with dayjs locale#472
priscilawebdev merged 10 commits intoverdaccio:masterfrom
mikollaay:feature/ua-lang

Conversation

@mikollaay
Copy link
Copy Markdown
Contributor

Type:

The following has been addressed in the PR:

  • There is a related issue?
  • Unit or Functional tests are included in the PR

Description:

@priscilawebdev
Copy link
Copy Markdown
Contributor

@mikollaay thank you for your contribution 🙂Please could you describe the issue you fixed?

Микола Яремченко added 2 commits May 2, 2020 23:14
Copy link
Copy Markdown
Member

@juanpicado juanpicado left a comment

Choose a reason for hiding this comment

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

A small change in Spanish translation 👍

@juanpicado
Copy link
Copy Markdown
Member

Bundlesize is failing, please ignore it, we should increase size since we are adding new translations, not a big problem :)

@codecov
Copy link
Copy Markdown

codecov bot commented May 2, 2020

Codecov Report

Merging #472 into master will increase coverage by 0.07%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #472      +/-   ##
==========================================
+ Coverage   82.72%   82.80%   +0.07%     
==========================================
  Files         142      142              
  Lines        1077     1082       +5     
  Branches      210      209       -1     
==========================================
+ Hits          891      896       +5     
  Misses        154      154              
  Partials       32       32              
Impacted Files Coverage Δ
i18n/config.ts 100.00% <ø> (ø)
src/App/App.tsx 100.00% <ø> (ø)
src/components/Icon/Icon.tsx 100.00% <ø> (ø)
src/components/LanguageSwitch/LanguageSwitch.tsx 55.55% <0.00%> (-1.05%) ⬇️
src/design-tokens/load-dayjs-locale.ts 33.33% <50.00%> (ø)
src/design-tokens/ThemeProvider.tsx 100.00% <100.00%> (ø)

@verdaccio verdaccio deleted a comment from mikollaay May 2, 2020
@mikollaay
Copy link
Copy Markdown
Contributor Author

Знімок екрана 2020-05-02 о 23 24 59

Date is always in English

allocated fix code last commit 53f8d56

juanpicado
juanpicado previously approved these changes May 3, 2020
Copy link
Copy Markdown
Member

@juanpicado juanpicado left a comment

Choose a reason for hiding this comment

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

Great job @mikollaay

Screen Shot 2020-05-03 at 8 36 57 AM

}

switch (locale.toLowerCase()) {
case 'en-us':
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In this case I believe that en-us should be the default

return;
}

switch (locale.toLowerCase()) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

locale?.toLowerCase()

useEffect(() => {
changeLanguage();
}, [language, changeLanguage]);
loadDayJSLocale();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

now I know the bug you have fixed... good catch! thanks :)

@priscilawebdev
Copy link
Copy Markdown
Contributor

@mikollaay if you don't mind I will update with a small fix, so then the tests will pass and we can have it merged ;-)

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented May 3, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
51.1% 51.1% Duplication

Copy link
Copy Markdown
Contributor

@priscilawebdev priscilawebdev left a comment

Choose a reason for hiding this comment

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

Good Job ✅

@priscilawebdev priscilawebdev merged commit b59840d into verdaccio:master May 3, 2020
@mikollaay
Copy link
Copy Markdown
Contributor Author

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants