Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create resources-ms #7

Open
trajano opened this issue Oct 13, 2017 · 0 comments
Open

Create resources-ms #7

trajano opened this issue Oct 13, 2017 · 0 comments
Assignees

Comments

@trajano
Copy link
Owner

trajano commented Oct 13, 2017

Ms-Resource is a configurable microservice that will provide i18n type of data

It uses Excel as the source data and will do the conversion.

The request looks like

/{context}/{locale}

Context represents a set of excel sheets.

Configuration looks like

Default locale : en
Contexts:

  • name: context name
    . Sheets:
    • file: excel file
      . Sheet: sheet name
  • name: another context
    . File: excel file
    . Sheet sheet name

The second is a short cut for more common usages where there is only one file and sheet

The data looks like

Key locale locale locale

The key is dot notation and each dot will be represented as a json path

The default locale will be used as a fall back when the resource was not found for a given locale.

If a locale does not have a value then the output of the value is (locale requested) + default locale value

If the default locale value is also missing then the output is

(locale requested) key name

@trajano trajano self-assigned this Oct 13, 2017
trajano added a commit that referenced this issue Oct 15, 2017
The language would eventually be required for #7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant