Skip to content
/ ng-multi-lang Public template

Multi-language angular project boilerplate

Notifications You must be signed in to change notification settings

itsmanojb/ng-multi-lang

Repository files navigation

Angular Multi-langugae Setup

Boilerplate project for displaying website contents in multiple languages.

Required Packages

@ngx-translate/core
@ngx-translate/http-loader

Setup

Add language file <lang>.json (eg. en.json, de.json, fr.json etc.) in the i18n folder in the assets folder.

<select>
  <option value="en">English</option>
  <option value="de">Spanish</option>
  ...
</select>

Note: This filename should match the option value in the select dropdown.


ScreenShot