Skip to content

Commit

Permalink
added multilanguage from momentjs lang files
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Szemelowski committed Aug 3, 2018
1 parent d8f79c1 commit 6ebf377
Show file tree
Hide file tree
Showing 14 changed files with 134 additions and 113 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ionic Calendar (English and Spanish)
# Ionic Calendar Multilanguage

![image](https://raw.githubusercontent.com/gbrits/ionic-calendar/master/calendar.png?raw=true)

Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export { CalendarModule } from './src/calendar/calendar.module';
//# sourceMappingURL=index.js.map
"use strict";
exports.__esModule = true;
var calendar_module_1 = require("./src/calendar/calendar.module");
exports.CalendarModule = calendar_module_1.CalendarModule;
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"url": "https://github.com/gbrits/ionic-calendar/issues"
},
"homepage": "https://github.com/gbrits/ionic-calendar#readme",
"dependencies": {},
"dependencies": {
"moment": "^2.22.2"
},
"devDependencies": {
"typescript": "2.3.4"
}
Expand Down
4 changes: 2 additions & 2 deletions src/calendar/calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
</ion-row>

<ion-row>
<ion-col class="center calendar-header-col" *ngFor="let head of weekHead">{{head}}</ion-col>
<ion-col class="center calendar-header-col" *ngFor="let head of weekHead">{{head | weekdayName:lang}}</ion-col>
</ion-row>

<ion-row class="calendar-row" *ngFor="let week of weekArray;let i = index">
<ion-col class="center calendar-col" (click)="daySelect(day,i,j)" *ngFor="let day of week;let j = index" [ngClass]="[day.isThisMonth?'this-month':'not-this-month',day.isToday?'today':'',day.isSelect?'select':'']">
<ion-col class="center calendar-col" (click)="daySelect(day,i,j)" *ngFor="let day of week;let j = index" [ngClass]="[day.isThisMonth?'this-month':'not-this-month',day.isToday?'today':'',day.isSelect?'select':'',day.hasEvent?'has-event':'']">
{{day.date}}
<span class="eventBlip" *ngIf="day.hasEvent"></span>
</ion-col>
Expand Down
83 changes: 34 additions & 49 deletions src/calendar/calendar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6ebf377

Please sign in to comment.