Giter Site home page Giter Site logo

ember-intl / decorators Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 1.0 4.14 MB

๐ŸŒ Decorators for using ember-intl with ES6 class syntax

License: MIT License

JavaScript 46.06% HTML 9.25% TypeScript 44.64% Handlebars 0.05%
decorators ember ember-addon intl

decorators's Introduction

This project uses GitHub Actions for continuous integration. npm Ember Observer Score

ember-intl

Installation

See https://ember-intl.github.io/ember-intl/docs/quickstart.

Features

  • ๐Ÿน Compatible with Ember apps, v1 addons (including engines), and v2 addons.
  • ๐Ÿ“š Built on standards: ICU message syntax and Internationalization API.
  • ๐ŸŒ Support for 150+ languages.
  • โš™๏ธ Locale-aware helpers and intl service, to help you display translations, numbers, dates, etc.
  • โœ… Test helpers to check locale-dependent templates.

Documentation

Compatibility

  • Ember.js v3.28 or above
  • Node.js v18 or above

decorators's People

Contributors

buschtoens avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar ember-tomster avatar jasonmit avatar pgengler avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pgengler

decorators's Issues

re-enable once TypeScript parser works properly

// @TODO: re-enable once TypeScript parser works properly
// eslint-disable-next-line no-unused-vars
import ComputedProperty from '@ember/object/computed';
import { Descriptor } from './decorator';
export function computedDecorator(
fn: (desc: Descriptor, params?: any[]) => ComputedProperty<any>
): PropertyDecorator & ((desc: Descriptor) => Descriptor);


This issue was generated by todo based on a TODO comment in 3f014df. It's been assigned to @buschtoens because they committed the code.

Re-export `raw` function

Re-export the raw function from ember-intl/ember-intl#625 for easier, unified access.

import Component from '@ember/component';
import { t, raw } from 'ember-intl-decorators';

class ExampleComponent extends Component {
  @t('messages.welcome', { firstName: raw('Tom') }) message;
}

re-enable once TypeScript parser works properly

// @TODO: re-enable once TypeScript parser works properly
// eslint-disable-next-line no-unused-vars
hooks.beforeEach(function(this: TestContext) {
const { owner } = this;
class ContainerObject extends EmberObject {
constructor() {
super();
setOwner(this, owner);
}
}


This issue was generated by todo based on a TODO comment in 3f014df. It's been assigned to @buschtoens because they committed the code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.