summaryrefslogtreecommitdiffstats
path: root/src/pendulum/locales/en_us/custom.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-17 14:32:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-17 14:32:20 +0000
commitdb51f7f103bbbd6c91c8f47d75b3482ef8939691 (patch)
treeab59b1147bd0cd39f31a48073cff236ede4ec1df /src/pendulum/locales/en_us/custom.py
parentAdding upstream version 3.0.0~a1. (diff)
downloadpendulum-upstream.tar.xz
pendulum-upstream.zip
Adding upstream version 3.0.0.upstream/3.0.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/pendulum/locales/en_us/custom.py')
-rw-r--r--src/pendulum/locales/en_us/custom.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/pendulum/locales/en_us/custom.py b/src/pendulum/locales/en_us/custom.py
new file mode 100644
index 0000000..72d2005
--- /dev/null
+++ b/src/pendulum/locales/en_us/custom.py
@@ -0,0 +1,25 @@
+"""
+en-us custom locale file.
+"""
+from __future__ import annotations
+
+
+translations = {
+ "units": {"few_second": "a few seconds"},
+ # Relative time
+ "ago": "{} ago",
+ "from_now": "in {}",
+ "after": "{0} after",
+ "before": "{0} before",
+ # Ordinals
+ "ordinal": {"one": "st", "two": "nd", "few": "rd", "other": "th"},
+ # Date formats
+ "date_formats": {
+ "LTS": "h:mm:ss A",
+ "LT": "h:mm A",
+ "L": "MM/DD/YYYY",
+ "LL": "MMMM D, YYYY",
+ "LLL": "MMMM D, YYYY h:mm A",
+ "LLLL": "dddd, MMMM D, YYYY h:mm A",
+ },
+}