Git Product home page Git Product logo

Comments (8)

jenssegers avatar jenssegers commented on May 18, 2024

But if you do this, you would get '1 monatn' when :count is 1?

from date.

jenssegers avatar jenssegers commented on May 18, 2024

I added plural forms for 'ago' etc:

'ago'       => 'vor :time|vor :timen',

Is 'ago' the only one that has the extra 'n'? Or are there others?

from date.

dhardtke avatar dhardtke commented on May 18, 2024

Yes, it's the only one..

perfect, thank you! :)

from date.

dhardtke avatar dhardtke commented on May 18, 2024

Okay, it's not perfect yet:

'year' => '1 Jahr|:count Jahre',
    'month' => '1 Monat|:count Monate',
    'week' => '1 Woche|:count Wochen',
    'day' => '1 Tag|:count Tage',
    'hour' => '1 Stunde|:count Stunden',
    'minute' => '1 Minute|:count Minuten',
    'second' => '1 Sekunde|:count Sekunden',

So what I get is "Vor 10 Stundenn" - notice the two 'n's?
mmh.. How can this be fixed?

from date.

jenssegers avatar jenssegers commented on May 18, 2024

That's a difficult one, I really don't see an easy solution for this.

from date.

jenssegers avatar jenssegers commented on May 18, 2024

Issue #27 seems to be related to this.

from date.

jenssegers avatar jenssegers commented on May 18, 2024

I added custom translations for suffixes in f6b2a3c

This should be correct right?

'year_ago'      => '1 Jahr|:count Jahren',
'month_ago'     => '1 Monat|:count Monaten',
'week_ago'      => '1 Woche|:count Wochen',
'day_ago'       => '1 Tag|:count Tagen',
'hour_ago'      => '1 Stunde|:count Stunden',
'minute_ago'    => '1 Minute|:count Minuten',
'second_ago'    => '1 Sekunde|:count Sekunden',

from date.

dhardtke avatar dhardtke commented on May 18, 2024

Yes, exactly.

from date.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.