Skip to content

Resource Sentry Writer with an output target as ECMAScript 2015.

License

Notifications You must be signed in to change notification settings

resource-sentry/writer-es2015

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Writer: ES2015

Resource Sentry Writer with an output target as ECMAScript 2015.

Represents category types as ES6 module with simple API.

Use Rs.getText(ID, locale) for multi-language support. Current implementation performs RFC 4647 Lookup to find the best language for the provided locale.

Version Dependencies

Installation

yarn add --dev @resource-sentry/writer-es2015

Configuration

  • path, output directory for the final JavaScript rs.js file.

Example

After all reader have finished the work. Writer would produce rs.js resource file at the provided destination.

import Rs from './rs';

Rs.getResource(Rs.Text.HELLO); 
Rs.getResource(Rs.Value.EASY_COUNT); 
Rs.getText(Rs.Text.WORLD, 'en-US');

About

Resource Sentry Writer with an output target as ECMAScript 2015.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •