Skip to content

Commit

Permalink
modify and add more sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychhsu committed Mar 4, 2019
1 parent 28898c3 commit cb0ed3a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions languages/zh-tw/timers.genie
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const TIMER_SCHEMA = new Ast.FunctionDef('stream',
false, // is_list
true, // is_monitorable
{
canonical: '每固定週期',
canonical: '每 固定 週期',
confirmation: '每 ${interval}',
},
{} // annotations
Expand All @@ -30,29 +30,29 @@ const AT_TIMER_SCHEMA = new Ast.FunctionDef('stream',
false, // is_list
true, // is_monitorable
{
canonical: '每天的固定時間',
confirmation: '每天的 ${interval}',
canonical: '每天 的 固定 時間',
confirmation: '每天 的 ${interval}',
},
{} // annotations
);
}

timer = {
'每天的' time:constant_Time => new Ast.Stream.AtTimer(time, AT_TIMER_SCHEMA);
'每天在' time:constant_Time '的時候' => new Ast.Stream.AtTimer(time, AT_TIMER_SCHEMA);
'每天 的' time:constant_Time => new Ast.Stream.AtTimer(time, AT_TIMER_SCHEMA);
'每天 在' time:constant_Time '的 時候' => new Ast.Stream.AtTimer(time, AT_TIMER_SCHEMA);

!turking {
// TODO : Need to handle duration in Chinese
'每' interval:constant_Measure_ms => new Ast.Stream.Timer(Ast.Value.Date.now(), interval, TIMER_SCHEMA);
'每天' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'day'), TIMER_SCHEMA);
'一天一次' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'day'), TIMER_SCHEMA);
'一 天 一 次' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'day'), TIMER_SCHEMA);
'每月' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'mon'), TIMER_SCHEMA);
'每個月' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'mon'), TIMER_SCHEMA);
'一個月一次' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'mon'), TIMER_SCHEMA);
'每 個 月' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'mon'), TIMER_SCHEMA);
'一 個 月 一次' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'mon'), TIMER_SCHEMA);
'每週' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'week'), TIMER_SCHEMA);
'一週一次' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'week'), TIMER_SCHEMA);
'每小時' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'h'), TIMER_SCHEMA);
'每一小時' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'h'), TIMER_SCHEMA);
'每小時一次' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'h'), TIMER_SCHEMA);
'一 週 一 次' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'week'), TIMER_SCHEMA);
'每 小 時' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'h'), TIMER_SCHEMA);
'每 一 小 時' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'h'), TIMER_SCHEMA);
'每 小 時 一 次' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'h'), TIMER_SCHEMA);
'每 一 小 時 一 次' => new Ast.Stream.Timer(Ast.Value.Date.now(), new Ast.Value.Measure(1, 'h'), TIMER_SCHEMA);
}
}

0 comments on commit cb0ed3a

Please sign in to comment.