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

multi-language support #5

Closed
StegSchreck opened this issue Oct 24, 2017 · 1 comment
Closed

multi-language support #5

StegSchreck opened this issue Oct 24, 2017 · 1 comment

Comments

@StegSchreck
Copy link
Owner

StegSchreck commented Oct 24, 2017

Basic idea for the application context (not individual's cv data):

  • having a JSON or properties file per language containing the translated keywords
    • open question: 1 file per language per component or 1 file per language for the entire application?
    • keywords should represent application structure, e.g. education.languages.title
  • depending on which files are present, fill a selection dropdown
  • selection dropdown to be placed in the header
    • header title text placement boundaries to be adjusted
    • language selection is a state. where to store? cookie?

For the individual's CV data (e.g. current employer's name and description) a different approach could be taken.

  • copy of cv-items.data.ts containing same items (or even different?!?) but in different language
  • enriching the structure of existing cv-items.data.ts with a layer representing the language chosen by selected language (see above)

Inspiration

@StegSchreck
Copy link
Owner Author

StegSchreck commented May 17, 2019

  • new component l10n offers the visitor to switch the language
    • selected language is stored in the browser's local storage
    • default is depending on what is configured in the feature-toggles.data.ts
  • non-individual data is retrieved from l10n.data.ts via l10n.service.ts
  • individual's cv-data is still only configurable in multiple languages so far --> Ability to maintain CV data in multiple languages #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
AngularCV
  
Done
Development

No branches or pull requests

1 participant