Skip to content

Commit b698b6b

Browse files
zaki50marlonlom
authored andcommitted
Added fil, ja and ko messages support.
1 parent 14cbe65 commit b698b6b

File tree

5 files changed

+139
-1
lines changed

5 files changed

+139
-1
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#
2+
# Copyright (c) 2025, Moments Technologies Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the
5+
# "License"); you may not use this file except in compliance
6+
# with the License. You may obtain a copy of the License at:
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing,
11+
# software distributed under the License is distributed on
12+
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13+
# KIND, either express or implied. See the License for the
14+
# specific language governing permissions and limitations
15+
# under the License.
16+
#
17+
ml.timeago.now=ngayon lang
18+
ml.timeago.oneminute.past=isang minuto ang nakalipas
19+
ml.timeago.xminutes.past={0} minuto ang nakalipas
20+
ml.timeago.aboutanhour.past=halos isang oras na ang nakalipas
21+
ml.timeago.xhours.past={0} na oras ang nakalipas
22+
ml.timeago.oneday.past=kahapon
23+
ml.timeago.xdays.past={0} araw ang nakalipas
24+
ml.timeago.oneweek.past=isang linggo na ang nakalipas
25+
ml.timeago.xweeks.past={0} linggo ang nakalipas
26+
ml.timeago.aboutamonth.past=halos isang buwan na ang nakalipas
27+
ml.timeago.xmonths.past={0} na buwan ang nakalipas
28+
ml.timeago.aboutayear.past=mga isang taon na ang nakalipas
29+
ml.timeago.overayear.past=mahigit isang taon na ang nakalipas
30+
ml.timeago.almosttwoyears.past=halos dalawang taon na ang nakalipas
31+
ml.timeago.xyears.past={0} taon na ang nakalipas
32+
ml.timeago.oneminute.future=sa loob ng isang minuto
33+
ml.timeago.xminutes.future=sa loob ng {0} minuto
34+
ml.timeago.aboutanhour.future=sa loob ng halos isang oras
35+
ml.timeago.xhours.future=sa loob ng {0} oras
36+
ml.timeago.oneday.future=bukas
37+
ml.timeago.xdays.future=sa loob ng {0} araw
38+
ml.timeago.oneweek.future=sa loob ng isang linggo
39+
ml.timeago.xweeks.future=sa loob ng {0} linggo
40+
ml.timeago.aboutamonth.future=sa loob ng halos isang buwan
41+
ml.timeago.xmonths.future=sa loob ng {0} buwan
42+
ml.timeago.aboutayear.future=sa loob ng halos isang taon
43+
ml.timeago.overayear.future=sa loob ng mahigit isang taon
44+
ml.timeago.almosttwoyears.future=sa loob ng halos dalawang taon
45+
ml.timeago.xyears.future=sa loob ng {0} taon
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#
2+
# Copyright (c) 2025, Moments Technologies Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the
5+
# "License"); you may not use this file except in compliance
6+
# with the License. You may obtain a copy of the License at:
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing,
11+
# software distributed under the License is distributed on
12+
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13+
# KIND, either express or implied. See the License for the
14+
# specific language governing permissions and limitations
15+
# under the License.
16+
#
17+
ml.timeago.now=
18+
ml.timeago.oneminute.past=1秒前
19+
ml.timeago.xminutes.past={0}秒前
20+
ml.timeago.aboutanhour.past=約1時間前
21+
ml.timeago.xhours.past={0}時間前
22+
ml.timeago.oneday.past=昨日
23+
ml.timeago.xdays.past={0}日前
24+
ml.timeago.oneweek.past=1週間前
25+
ml.timeago.xweeks.past={0}週間前
26+
ml.timeago.aboutamonth.past=約1ヶ月前
27+
ml.timeago.xmonths.past={0}ヶ月前
28+
ml.timeago.aboutayear.past=約1年前
29+
ml.timeago.overayear.past=1年以上前
30+
ml.timeago.almosttwoyears.past=約2年前
31+
ml.timeago.xyears.past={0}年前
32+
ml.timeago.oneminute.future=1分後
33+
ml.timeago.xminutes.future={0}分後
34+
ml.timeago.aboutanhour.future=1時間後
35+
ml.timeago.xhours.future={0}時間後
36+
ml.timeago.oneday.future=明日
37+
ml.timeago.xdays.future={0}日後
38+
ml.timeago.oneweek.future=1週間後
39+
ml.timeago.xweeks.future={0}週間後
40+
ml.timeago.aboutamonth.future=約1ヶ月後
41+
ml.timeago.xmonths.future={0}ヶ月後
42+
ml.timeago.aboutayear.future=約1年後
43+
ml.timeago.overayear.future=1年以上後
44+
ml.timeago.almosttwoyears.future=後2年後
45+
ml.timeago.xyears.future={0}年後
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#
2+
# Copyright (c) 2025, Moments Technologies Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the
5+
# "License"); you may not use this file except in compliance
6+
# with the License. You may obtain a copy of the License at:
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing,
11+
# software distributed under the License is distributed on
12+
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13+
# KIND, either express or implied. See the License for the
14+
# specific language governing permissions and limitations
15+
# under the License.
16+
#
17+
ml.timeago.now=방금
18+
ml.timeago.oneminute.past=1분 전
19+
ml.timeago.xminutes.past={0}분 전
20+
ml.timeago.aboutanhour.past=약 1시간 전
21+
ml.timeago.xhours.past={0}시간 전
22+
ml.timeago.oneday.past=어제
23+
ml.timeago.xdays.past={0}일 전
24+
ml.timeago.oneweek.past=1주일 전
25+
ml.timeago.xweeks.past={0}주 전
26+
ml.timeago.aboutamonth.past=약 1달 전
27+
ml.timeago.xmonths.past={0}개월 전
28+
ml.timeago.aboutayear.past=약 1년 전
29+
ml.timeago.overayear.past=1년 전
30+
ml.timeago.almosttwoyears.past=거의 2년 전
31+
ml.timeago.xyears.past={0}년 전
32+
ml.timeago.oneminute.future=1분 이내
33+
ml.timeago.xminutes.future={0}분 이내
34+
ml.timeago.aboutanhour.future=약 1시간 이내
35+
ml.timeago.xhours.future={0}시간 이내
36+
ml.timeago.oneday.future=내일
37+
ml.timeago.xdays.future={0}일 이내
38+
ml.timeago.oneweek.future=1주일 이내
39+
ml.timeago.xweeks.future={0}주 이내
40+
ml.timeago.aboutamonth.future=약 1달 이내
41+
ml.timeago.xmonths.future={0}개월 이내
42+
ml.timeago.aboutayear.future=약 1년 이내
43+
ml.timeago.overayear.future=1년 이상
44+
ml.timeago.almosttwoyears.future=거의 2년 이내
45+
ml.timeago.xyears.future={0}년 이내

ta_library/src/test/kotlin/com/github/marlonlom/utilities/timeago/DataBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ object DataBuilder {
2323
/**
2424
* The available languages array.
2525
*/
26-
private val LANGUAGES_ARRAY = "ar;cs;da;de;en;es;eu;fa;fr;in;it;nl;pt;tr;zh;zh_tw".split(
26+
private val LANGUAGES_ARRAY = "ar;cs;da;de;en;es;eu;fa;fil;fr;in;it;ja;ko;nl;pt;tr;zh;zh_tw".split(
2727
";".toRegex(),
2828
).dropLastWhile {
2929
it.isEmpty()

ta_sample/src/main/kotlin/com/github/marlonlom/timeago/sample/utils/SupportedLanguageSelector.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ object SupportedLanguageSelector {
3636
"es" to "Spanish",
3737
"eu" to "Basque",
3838
"fa" to "Farsi",
39+
"fil" to "Filipino",
3940
"fr" to "French",
4041
"hi" to "Hindi",
4142
"hu" to "Hungarian",
4243
"in" to "Indonesian",
4344
"it" to "Italian",
45+
"ja" to "Japanese",
46+
"ko" to "Korean",
4447
"nl" to "Dutch",
4548
"pl" to "Polish",
4649
"pt" to "Portuguese",

0 commit comments

Comments
 (0)