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

fix: formatDistance for Basque (eu) #3749

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/locale/eu/_lib/formatDistance/index.ts
Expand Up @@ -14,7 +14,7 @@ const formatDistanceLocale: FormatDistanceLocale<FormatDistanceTokenValue> = {
},

xSeconds: {
one: "1 segundo",
one: "segundo bat",
other: "{{count}} segundo",
},

Expand All @@ -26,22 +26,22 @@ const formatDistanceLocale: FormatDistanceLocale<FormatDistanceTokenValue> = {
},

xMinutes: {
one: "1 minutu",
one: "minutu bat",
other: "{{count}} minutu",
},

aboutXHours: {
one: "1 ordu gutxi gorabehera",
one: "ordu bat gutxi gorabehera",
other: "{{count}} ordu gutxi gorabehera",
},

xHours: {
one: "1 ordu",
one: "ordu bat",
other: "{{count}} ordu",
},

xDays: {
one: "1 egun",
one: "egun bat",
other: "{{count}} egun",
},

Expand All @@ -51,37 +51,37 @@ const formatDistanceLocale: FormatDistanceLocale<FormatDistanceTokenValue> = {
},

xWeeks: {
one: "1 aste",
one: "aste bat",
other: "{{count}} astean",
},

aboutXMonths: {
one: "1 hilabete gutxi gorabehera",
one: "hilabete bat gutxi gorabehera",
other: "{{count}} hilabete gutxi gorabehera",
},

xMonths: {
one: "1 hilabete",
one: "hilabete bat",
other: "{{count}} hilabete",
},

aboutXYears: {
one: "1 urte gutxi gorabehera",
one: "urte bat gutxi gorabehera",
other: "{{count}} urte gutxi gorabehera",
},

xYears: {
one: "1 urte",
one: "urte bat",
other: "{{count}} urte",
},

overXYears: {
one: "1 urte baino gehiago",
one: "urte bat baino gehiago",
other: "{{count}} urte baino gehiago",
},

almostXYears: {
one: "ia 1 urte",
one: "ia urte bat",
other: "ia {{count}} urte",
},
};
Expand All @@ -100,7 +100,7 @@ export const formatDistance: FormatDistanceFn = (token, count, options) => {

if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "en " + result;
return result + " barru";
} else {
return "duela " + result;
}
Expand Down