1.0.189 • Published 2 years ago

@varsom-regobs-common/translations v1.0.189

Weekly downloads
2
License
ISC
Repository
github
Last release
2 years ago

Varsom-Regobs-Translations

Translation files for Varsom Regobs - Web, Mobile app, and API.

Translations for web are released as an npm package.

Clone or download git repository

To clone repository:

git clone https://github.com/NVE/Varsom-Regobs-Translations.git

Or download without git: https://github.com/NVE/Varsom-Regobs-Translations/archive/master.zip

Folder layout

Language files for the api are found in the folder api. Language files for the web (beta.regobs.no) are found in the folder web.

The mobile app has static content such as label names, tags and most menu items. Language files for the static content in the app are found in app/i18n. Some translations are for the native components and are found in app/native-dialogs.

Some content is dynamic. Eg content in select-menus and help texts. These can be updated in the database, and api and app (and web) will sync the changes without the need for a new release. These files are found in kdvelements and helptexts. They do not follow the i18n standard so editing must be done in the json files directly. Again, Atom might be a good editor for this.

Note, that in the kdvelements file, most of the "name" elements are restricted to 30chars. This is because the elements are used in select-menus which often are restricted in width (e.g. on a mobile phone). Exceptions from this rule may be seen when norwegian or english name are larger than 30 chars.

Linking translation files for web into another project

  1. Inside Varsom-Regobs-Translations, run npm link
  2. Inside the other project that uses @varsom-regobs-common/translations, run npm link "@varsom-regobs-common/translations".

You can now edit the files inside the local Varsom-Regobs-Translations/web folder, and the changes should be linked/available in the other project.

Using i18n-editor to edit translation files

Use i18n-editor v2.0.0-beta.1 to edit the api and app files. https://github.com/jcbvm/i18n-editor/releases/tag/2.0.0-beta.1

Download the zip package and extract to your preferred folder.

Open the different language files in one project by: Select File -> Import project and choose the folder containing the translation files.

Missing translations is marked with an orange circle.

A normal text editor with a possibility for a split view will be useful to edit the kdvelements and the helptexts. E.g Atom (https://atom.io/).

When you have finished translating

You can either send us the new translation files and we will update the files in this repository for you or you can create a pull-request to merge in the new changes. (Requires knowledge of git and pull-request workflow)

Validation (Optional to check if everything is ok)

Make sure you have Node.js installed.

Install npm packages: npm install

Run build script: npm run build

This script will automatically run when a new master is pushed. If build validates successfully, a new NPM package is published to: https://www.npmjs.com/package/@varsom-regobs-common/translations

1.0.189

2 years ago

1.0.188

2 years ago

1.0.186

3 years ago

1.0.183

3 years ago

1.0.185

3 years ago

1.0.184

3 years ago

1.0.182

3 years ago

1.0.181

3 years ago

1.0.180

3 years ago

1.0.179

3 years ago

1.0.178

3 years ago

1.0.177

3 years ago

1.0.176

3 years ago

1.0.175

3 years ago

1.0.174

3 years ago

1.0.173

3 years ago

1.0.172

3 years ago

1.0.171

3 years ago

1.0.170

3 years ago

1.0.169

3 years ago

1.0.168

3 years ago

1.0.167

3 years ago

1.0.166

3 years ago

1.0.165

3 years ago

1.0.164

3 years ago

1.0.163

3 years ago

1.0.162

3 years ago

1.0.161

3 years ago

1.0.160

3 years ago

1.0.159

3 years ago

1.0.158

3 years ago

1.0.157

3 years ago

1.0.156

3 years ago

1.0.154

3 years ago

1.0.153

3 years ago

1.0.155

3 years ago

1.0.150

3 years ago

1.0.152

3 years ago

1.0.151

3 years ago

1.0.149

3 years ago

1.0.148

3 years ago

1.0.147

3 years ago

1.0.146

3 years ago

1.0.145

3 years ago

1.0.144

3 years ago

1.0.143

3 years ago

1.0.142

3 years ago

1.0.141

3 years ago

1.0.140

3 years ago

1.0.139

3 years ago

1.0.138

3 years ago

1.0.137

3 years ago

1.0.136

3 years ago

1.0.134

3 years ago

1.0.135

3 years ago

1.0.132

3 years ago

1.0.131

3 years ago

1.0.133

3 years ago

1.0.130

3 years ago

1.0.129

3 years ago

1.0.128

3 years ago

1.0.127

4 years ago

1.0.126

4 years ago

1.0.125

4 years ago

1.0.124

4 years ago

1.0.123

4 years ago

1.0.121

4 years ago

1.0.120

4 years ago

1.0.122

4 years ago

1.0.119

4 years ago

1.0.118

4 years ago

1.0.117

4 years ago

1.0.116

4 years ago

1.0.114

4 years ago

1.0.115

4 years ago

1.0.113

4 years ago

1.0.112

4 years ago

1.0.111

4 years ago

1.0.109

4 years ago

1.0.110

4 years ago

1.0.108

4 years ago

1.0.107

4 years ago

1.0.106

4 years ago

1.0.105

4 years ago

1.0.104

4 years ago

1.0.101

4 years ago

1.0.100

4 years ago

1.0.99

4 years ago

1.0.98

4 years ago

1.0.97

4 years ago

1.0.96

4 years ago

1.0.95

4 years ago

1.0.94

4 years ago

1.0.93

4 years ago

1.0.92

4 years ago

1.0.91

4 years ago

1.0.90

4 years ago

1.0.89

4 years ago

1.0.88

4 years ago

1.0.87

4 years ago

1.0.86

4 years ago

1.0.85

4 years ago

1.0.84

4 years ago

1.0.83

4 years ago

1.0.82

4 years ago

1.0.80

4 years ago

1.0.81

4 years ago

1.0.79

4 years ago

1.0.78

4 years ago

1.0.77

4 years ago

1.0.76

4 years ago

1.0.75

4 years ago

1.0.74

4 years ago

1.0.73

4 years ago

1.0.72

4 years ago

1.0.71

4 years ago

1.0.69

4 years ago

1.0.70

4 years ago

1.0.68

4 years ago

1.0.66

4 years ago

1.0.67

4 years ago

1.0.65

4 years ago

1.0.64

4 years ago

1.0.63

4 years ago

1.0.62

4 years ago

1.0.61

4 years ago

1.0.60

4 years ago

1.0.59

4 years ago

1.0.58

4 years ago

1.0.57

4 years ago

1.0.56

4 years ago

1.0.55

4 years ago

1.0.54

4 years ago

1.0.53

4 years ago

1.0.52

4 years ago

1.0.51

4 years ago

1.0.50

4 years ago

1.0.48

4 years ago

1.0.49

4 years ago

1.0.47

4 years ago

1.0.46

4 years ago

1.0.45

4 years ago

1.0.44

4 years ago

1.0.43

4 years ago

1.0.42

4 years ago

1.0.41

4 years ago

1.0.39

4 years ago

1.0.40

4 years ago

1.0.38

4 years ago

1.0.37

4 years ago

1.0.36

4 years ago

1.0.35

4 years ago

1.0.34

4 years ago

1.0.33

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.27

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.9

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago