1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace App\Libraries;
7
8use Illuminate\Translation\MessageSelector;
9
10class OsuMessageSelector extends MessageSelector
11{
12 public function getPluralIndex($locale, $number)
13 {
14 return parent::getPluralIndex(locale_meta($locale)->laravelPlural(), $number);
15 }
16}