mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
feat: Add Catalan language option (#12454)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,10 @@ type LanguageOption = {
|
||||
// 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: LanguageOption[] = [
|
||||
{
|
||||
label: "Català (Catalan)",
|
||||
value: "ca_ES",
|
||||
},
|
||||
{
|
||||
label: "简体中文 (Chinese, Simplified)",
|
||||
value: "zh_CN",
|
||||
|
||||
@@ -11,6 +11,7 @@ import {
|
||||
parse,
|
||||
} from "date-fns";
|
||||
import {
|
||||
ca,
|
||||
cs,
|
||||
de,
|
||||
enGB,
|
||||
@@ -259,6 +260,7 @@ export function getCurrentDateTimeAsString(locale?: Intl.LocalesArgument) {
|
||||
}
|
||||
|
||||
const locales = {
|
||||
ca_ES: ca,
|
||||
cs_CZ: cs,
|
||||
de_DE: de,
|
||||
en_GB: enGB,
|
||||
|
||||
Reference in New Issue
Block a user