Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR hour + 1 #44

Open
Mariusthvdb opened this issue Oct 16, 2024 · 2 comments
Open

FR hour + 1 #44

Mariusthvdb opened this issue Oct 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Mariusthvdb
Copy link

as chatted in Discord

time = 20:30

in English: half past 8
in Dutch: half 9

hence my translation PR using half {hour + 1}

hope this is clear, let me know if not

@Petro31 Petro31 added the enhancement New feature or request label Oct 16, 2024
@10der
Copy link

10der commented Oct 19, 2024

Sorry for hijacking but in Ukrainian also as Dutch

this wrong
image

should be
пів на 21

btw: add please Ukrainian

  'uk':{
    '_language': 'Українська',
    'and': 'та',
    'in': 'в',
    'ago': 'тому',
    'now': 'зараз',
    'lose': 'зменшення',
    'gain': 'збільшення',
    'time':{
      'format': '24-hr',
      'year': [
        'р',
        'рік',
        'років',
      ],
      'week': [
        'тиж',
        'тиждень',
        'тижднів',
      ],
      'day': [
        'д',
        'дні',
        'днів',
      ],
      'hour': [
        'г',
        'година',
        'годин',
      ],
      'minute': [
        'хв',
        'хвилина',
        'хвилин',
      ],
      'second': [
        'сек',
        'секунда',
        'секунд',
      ],
    },
    'delta':{
      'today': 'сьогодні',
      'tomorrow': 'завтра',
      'yesterday': 'вчора',
      'next': 'наступний',
      'last': 'останній',
    },
    'days':[
      "Понеділок",
      "Вівторок",
      "Середа",
      "Четвер",
      "П'ятниця",
      "Субота",
      "Неділя",
    ],
    'months':[
      'Січень',
      'Лютий',
      'Березень',
      'Квітень',
      'Травень',
      'Червень',
      'Липень',
      'Серпень',
      'Вересень',
      'Жовтень',
      'Листопад',
      'Грудень',
    ],
    'time_of_hour':{
      0: '{hour} годин',
      1: '{hour} годин(а) одна хвилина',
      15: 'чверть на {hour}',
      30: 'пів на {hour}',
      45: 'за чверть {hour}',
      59: 'за хвилину {hour}',
      'past_hour': '{hour} та {minute} хвилин',
      'to_hour': 'за {minute} хвилин {hour}', 
    },
    'time_of_day':{
      'midnight': 'опівночі',
      'noon': 'опівдні',
    },
  }

@nielsnl68
Copy link

hello @Mariusthvdb I will create a new PR soon where the missing options could be addressed.

the configuration could be changed in my PR like this:'

when the hour or minute need to be modified first then replace the string with a array of maximal 3 elements; first the string; then the hour changes; and last one is the changes of minutes like:

    'time_of_hour':{
      0: '{hour} o\'clock',
      1: 'a minute past {hour}',
      15: 'quarter past {hour}',
      30: 'half past {hour}',
      45: ['quarter to {hour}',+1],
      59: ['a minute to {hour}', +1, -60],
      'past_hour': '{minute} past {hour}',
      'to_hour': ['{minute} to {hour}', +1, -60],
      'past_half_hour': ['{minute} past {hour}', +1 , -30],  
      'to_half_hour': ['{minute} to half past {hour}', +1, -30],
      '12_plus': -12,
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants