Skip to content

Commit

Permalink
feat(lang): add basque language (#2241)
Browse files Browse the repository at this point in the history
* Add basque language

* feat(lang): basque translations update

---------

Co-authored-by: Unai Bergara <[email protected]>
  • Loading branch information
unai-os and Unai Bergara authored Nov 18, 2024
1 parent 5deaddf commit bc61337
Show file tree
Hide file tree
Showing 5 changed files with 2,935 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/i18n/LocalePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import no from './flags/no.png';
import da from './flags/da.png';
import bg from './flags/bg.png';
import hu from './flags/hu.png';
import eu from './flags/eu.png';
import missing from './flags/missing-locale.png';

import localeNames from './locales/localeNames.json';
Expand Down Expand Up @@ -53,6 +54,7 @@ const localesMap = {
da,
bg,
hu,
eu,
};

export default function LocalePicker(): JSX.Element {
Expand Down
Binary file added src/i18n/flags/eu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import noTranslations from './locales/no.json';
import daTranslations from './locales/da.json';
import bgTranslations from './locales/bg.json';
import huTranslations from './locales/hu.json';
import euTranslations from './locales/eu.json';


import timeCa from 'timeago.js/lib/lang/ca';
Expand All @@ -47,7 +48,7 @@ import timeNo from 'timeago.js/lib/lang/nb_NO';
import timeDa from 'timeago.js/lib/lang/da';
import timeBg from 'timeago.js/lib/lang/bg';
import timeHu from 'timeago.js/lib/lang/hu';

import timeEu from 'timeago.js/lib/lang/eu';

register("ca", timeCa);
register("pl", timePl);
Expand All @@ -70,7 +71,7 @@ register("no", timeNo);
register("da", timeDa);
register("bg", timeBg);
register("hu", timeHu);

register("eu", timeEu);



Expand All @@ -97,6 +98,7 @@ export const resources = {
da: daTranslations as ResourceLanguage,
bg: bgTranslations as ResourceLanguage,
hu: huTranslations as ResourceLanguage,
eu: euTranslations as ResourceLanguage,

} as const;

Expand Down
Loading

0 comments on commit bc61337

Please sign in to comment.