Skip to content

Commit

Permalink
0.81.0
Browse files Browse the repository at this point in the history
0.81.0
  • Loading branch information
flameshikari authored Nov 11, 2024
2 parents a514aba + b9e467a commit 329bbee
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 39 deletions.
2 changes: 1 addition & 1 deletion scripts/insert_ru_entries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ cat $CWD/src/shared/utils/date.ts | \
> $CWD/shared/utils/date.ts

cat $CWD/src/shared/i18n/index.ts | \
sed '/^export const languageOptions = \[/a\ \ {\n label: "Русский (Russian)",\n value: "ru_RU",\n },' \
sed '/^export const languageOptions: LanguageOption\[\] = \[/a\ \ {\n label: "Русский (Russian)",\n value: "ru_RU",\n },' \
> $CWD/shared/i18n/index.ts
9 changes: 8 additions & 1 deletion shared/i18n/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { locales } from "../utils/date";

type LanguageOption = {
label: string;
value: keyof typeof locales;
};

// Note: Updating the available languages? Make sure to also update the
// locales array in shared/utils/date.ts to enable translation for timestamps.
export const languageOptions = [
export const languageOptions: LanguageOption[] = [
{
label: "Русский (Russian)",
value: "ru_RU",
Expand Down
Loading

0 comments on commit 329bbee

Please sign in to comment.