Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Linnea Samila / Moya

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • moya
  • code
  • moya-angular
  • src
  • app
  • pipes
  • i18n.pipe.ts
  • Tuukka Kivilahti's avatar
    some untested changes, to give onja some code · 45a70c54
    Tuukka Kivilahti committed Feb 10, 2018
    45a70c54
i18n.pipe.ts 251 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import { Pipe, PipeTransform } from '@angular/core'



@Pipe({
  name: 'i18n'
})
export class I18nPipe implements PipeTransform {
  i18n = require('../../i18n/i18n.json')

  transform(value: any, args?: any): any {
    return this.i18n[value];
  }

}