Skip to content

Commit

Permalink
date_localization_update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lungsangg committed Jan 14, 2025
1 parent ca7d744 commit 9e44aae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion reader/templatetags/sefaria_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def date_string_to_tibetan_date(value):

# Create the Tibetan date and time format
formatted_datetime = (
f"སྤྱི་ལོ་{value.year} "
f"ཕྱི་ལོ་{value.year} "
f"ཟླ་{value.month} "
f"ཚེས་{value.day} "
f"ཕྱག་ཚོད་{value.hour} "
Expand Down
2 changes: 1 addition & 1 deletion sefaria/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

DATE_FORMATS = {
'en': 'N j, Y g:i A', # English: January 5, 2024 2:30 PM
'he': 'སྤྱི་ལོY ཟླ་m ཚེས།j ཆུ་ཚོད།g', # Tibetan: སྤྱི་ལོ་2024 ཟླ་1 ཚེས་5 ཆུ་2 སྐར་30 སྔོན་PM
'he': 'ཕྱི་ལོY ཟླ་m ཚེས།j ཆུ་ཚོད།g', # Tibetan: ཕྱི་ལོ་2024 ཟླ་1 ཚེས་5 ཆུ་2 སྐར་30 སྔོན་PM
'ch': 'Y年 m月 j日 g:i A', # Chinese: 2024年1月5日 2:30 PM
'es': 'Y年 m月 j日 g:i A', # Spanish: 2024年1月5日 2:30 PM
}
Expand Down
2 changes: 1 addition & 1 deletion static/js/sefaria/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Util {
const yearString = getTibetanNumberAsString(year);
const monthString = getTibetanNumberAsString(month);
const dateString = getTibetanNumberAsString(date);
return `<span>སྤྱི་ལོ <sub>${yearString}</sub> ཟླ་ <sub>${monthString}</sub> ཚེས་ <sub>${dateString}</sub></span>`
return `<span> ཕྱི་ལོ <sub>${yearString}</sub> ཟླ་ <sub>${monthString}</sub> ཚེས་ <sub>${dateString}</sub></span>`
}

function getTibetanNumberAsString(num) {
Expand Down

0 comments on commit 9e44aae

Please sign in to comment.