summaryrefslogtreecommitdiff
path: root/date-fns/src/locale/te/_lib/formatLong/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'date-fns/src/locale/te/_lib/formatLong/index.js')
-rw-r--r--date-fns/src/locale/te/_lib/formatLong/index.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/date-fns/src/locale/te/_lib/formatLong/index.js b/date-fns/src/locale/te/_lib/formatLong/index.js
new file mode 100644
index 0000000..c1391f7
--- /dev/null
+++ b/date-fns/src/locale/te/_lib/formatLong/index.js
@@ -0,0 +1,45 @@
+import buildFormatLongFn from '../../../_lib/buildFormatLongFn/index'
+// Source: https://www.unicode.org/cldr/charts/32/summary/te.html
+
+// CLDR #1807 - #1811
+var dateFormats = {
+ full: 'd, MMMM y, EEEE',
+ long: 'd MMMM, y',
+ medium: 'd MMM, y',
+ short: 'dd-MM-yy'
+}
+
+// CLDR #1807 - #1811
+var timeFormats = {
+ full: 'h:mm:ss a zzzz',
+ long: 'h:mm:ss a z',
+ medium: 'h:mm:ss a',
+ short: 'h:mm a'
+}
+
+// CLDR #1815 - #1818
+var dateTimeFormats = {
+ full: "{{date}} {{time}}'కి'",
+ long: "{{date}} {{time}}'కి'",
+ medium: '{{date}} {{time}}',
+ short: '{{date}} {{time}}'
+}
+
+var formatLong = {
+ date: buildFormatLongFn({
+ formats: dateFormats,
+ defaultWidth: 'full'
+ }),
+
+ time: buildFormatLongFn({
+ formats: timeFormats,
+ defaultWidth: 'full'
+ }),
+
+ dateTime: buildFormatLongFn({
+ formats: dateTimeFormats,
+ defaultWidth: 'full'
+ })
+}
+
+export default formatLong