@burh/nuxt-core 1.1.19 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,7 @@
24
24
  <h6
25
25
  v-if="userData && userData.user_complementary_information && userData.user_complementary_information.birth && getAge() > 0 || false"
26
26
  >
27
- {{ getAge() }} anos
27
+ {{ getAge() }} {{ $t('user_cv.left_side.years_old') }}
28
28
  </h6>
29
29
 
30
30
  <p
@@ -49,7 +49,7 @@
49
49
  v-if="
50
50
  userData && userData.user_complementary_information && userData.user_complementary_information.wage_pretension && userData.user_complementary_information.wage_pretension > 1
51
51
  "
52
- >Pretensão salarial:
52
+ >{{ $t('user_cv.left_side.salary_expectation') }}
53
53
  {{
54
54
  userData.user_complementary_information.wage_pretension
55
55
  | convertMoney
@@ -62,14 +62,14 @@
62
62
  >
63
63
  <div class="aboutme title-block mt-3 ml-4">
64
64
  <h6 class="mb-0">
65
- Perfil DISC About Me
65
+ {{ $t('user_cv.left_side.disc_profile_title') }}
66
66
 
67
67
  <el-tooltip
68
68
  class="ml-1"
69
69
  placement="top"
70
70
  >
71
71
  <div slot="content" style="max-width: 250px">
72
- O DISC About Me é o teste de perfil comportamental da Burh que determina se a pessoa é Dominante, Influente, Sensato ou Analista.
72
+ {{ $t('user_cv.left_side.disc_tooltip') }}
73
73
  </div>
74
74
 
75
75
  <i class="fas fa-info-circle"></i>
@@ -89,12 +89,12 @@
89
89
  <template
90
90
  v-if="!isAboutmeUnlocked"
91
91
  >
92
- Desbloquear relatório
92
+ {{ $t('user_cv.left_side.unlock_report') }}
93
93
  <i class="fas fa-unlock"></i>
94
94
  </template>
95
95
 
96
96
  <template v-else>
97
- Baixar Relatório
97
+ {{ $t('user_cv.left_side.download_report') }}
98
98
  <i class="fas fa-file-download"></i>
99
99
  </template>
100
100
  </button>
@@ -108,7 +108,7 @@
108
108
  >
109
109
  <div class="d-flex align-items-center">
110
110
  <i class="fas fa-wheelchair"></i>
111
- <h6 class="mb-0 ml-2">Deficiência</h6>
111
+ <h6 class="mb-0 ml-2">{{ $t('user_cv.left_side.disability_title') }}</h6>
112
112
  </div>
113
113
  <div class="line"></div>
114
114
  <p>
@@ -120,31 +120,31 @@
120
120
  </p>
121
121
 
122
122
  <p v-if="!!(userData && userData.deficiency && userData.deficiency.appliance)">
123
- Acessório: {{ userData.deficiency.appliance }}
123
+ {{ $t('user_cv.left_side.accessory_label') }} {{ userData.deficiency.appliance }}
124
124
  </p>
125
125
 
126
126
  <p v-if="!!(userData && userData.deficiency && userData.deficiency.apparatus)">
127
- Necessidade: {{ userData.deficiency.apparatus }}
127
+ {{ $t('user_cv.left_side.necessity_label') }} {{ userData.deficiency.apparatus }}
128
128
  </p>
129
129
 
130
130
  <p v-if="!!(userData && userData.deficiency && userData.deficiency.course)">
131
- Curso: {{ userData.deficiency.course }}
131
+ {{ $t('user_cv.left_side.course_label') }} {{ userData.deficiency.course }}
132
132
  </p>
133
133
 
134
134
  <p v-if="!!(userData && userData.deficiency && userData.deficiency.note)">
135
- Anotações: {{ userData.deficiency.note }}
135
+ {{ $t('user_cv.left_side.notes_label') }} {{ userData.deficiency.note }}
136
136
  </p>
137
137
 
138
138
  <p v-if="!!(userData && userData.deficiency && userData.deficiency.transport === 1)">
139
- Utiliza transporte coletivo
139
+ {{ $t('user_cv.left_side.uses_public_transport') }}
140
140
  </p>
141
141
 
142
142
  <p v-if="!!(userData && userData.deficiency && userData.deficiency.vehicle === 1)">
143
- Possuí veículo adaptado
143
+ {{ $t('user_cv.left_side.has_adapted_vehicle') }}
144
144
  </p>
145
145
 
146
146
  <p v-if="!!(userData && userData.deficiency && userData.deficiency.escort === 1)">
147
- Precisa de acompanhante
147
+ {{ $t('user_cv.left_side.needs_companion') }}
148
148
  </p>
149
149
  </div>
150
150
 
@@ -152,7 +152,7 @@
152
152
  v-show="userData && userData.user_desired_job && userData.user_desired_job.length || 0"
153
153
  class="desidered title-block mt-3 ml-4"
154
154
  >
155
- <h6 class="mb-0">Cargos desejados</h6>
155
+ <h6 class="mb-0">{{ $t('user_cv.left_side.desired_positions') }}</h6>
156
156
  <div class="line"></div>
157
157
 
158
158
  <p
@@ -167,7 +167,7 @@
167
167
  v-show="userData && userData.user_language && userData.user_language.length || 0"
168
168
  class="languages title-block mt-3 ml-4"
169
169
  >
170
- <h6 class="mb-0">Idiomas</h6>
170
+ <h6 class="mb-0">{{ $t('user_cv.left_side.languages') }}</h6>
171
171
  <div class="line"></div>
172
172
 
173
173
  <p
@@ -187,7 +187,7 @@
187
187
  v-show="userData&&userData.user_skill &&userData.user_skill.length > 0"
188
188
  class="skills title-block ml-4"
189
189
  >
190
- <h6 class="mb-0">Habilidades</h6>
190
+ <h6 class="mb-0">{{ $t('user_cv.left_side.skills') }}</h6>
191
191
  <div class="line"></div>
192
192
 
193
193
  <p
@@ -258,12 +258,12 @@
258
258
  :options="{ width: 98, height: 98 }"
259
259
  class="border qr-code"
260
260
  ></vue-qrcode>
261
- <p class="mb-0">Código BURH</p>
261
+ <p class="mb-0">{{ $t('user_cv.left_side.burh_code') }}</p>
262
262
  <span class="qr-id">{{ userData.id }}</span
263
263
  ><br />
264
264
  <div class="teste-block">
265
265
  <span class="font-weight-normal mt-2 d-block" v-if="!isLocked"
266
- >Data de atualização:
266
+ >{{ $t('user_cv.left_side.update_date') }}
267
267
  {{ $moment(userData.updated_at).format('DD/MM/YYYY H:mm') }}
268
268
  </span>
269
269
  </div>
@@ -335,12 +335,13 @@ export default {
335
335
  },
336
336
  getTime(
337
337
  { start_year = null, end_year = null, start_month, end_month },
338
- textHappening = 'Cursando'
338
+ textHappening = null
339
339
  ) {
340
340
  const isHappening = !end_month && !end_year;
341
+ const happeningText = textHappening || this.$t('user_cv.left_side.studying');
341
342
 
342
343
  if (isHappening) {
343
- return textHappening;
344
+ return happeningText;
344
345
  }
345
346
 
346
347
  const dateInitial = this.$moment(
@@ -358,31 +359,31 @@ export default {
358
359
  const months = diffDuration.months();
359
360
 
360
361
  if (years) {
361
- return years > 1 ? `(${years} anos)` : `(${years} ano)`;
362
+ return years > 1 ? `(${years} ${this.$t('user_cv.left_side.years_plural')})` : `(${years} ${this.$t('user_cv.left_side.year_singular')})`;
362
363
  }
363
364
 
364
365
  return months > 1
365
- ? `(${months} meses)`
366
+ ? `(${months} ${this.$t('user_cv.left_side.months_plural')})`
366
367
  : months == 1
367
- ? `(${months} mês)`
368
+ ? `(${months} ${this.$t('user_cv.left_side.month_singular')})`
368
369
  : '';
369
370
  },
370
371
  languageLevel(level) {
371
372
  switch (parseInt(level)) {
372
373
  case 1:
373
- return 'Iniciante';
374
+ return this.$t('user_cv.left_side.language_level_beginner');
374
375
  case 2:
375
- return 'Elementar';
376
+ return this.$t('user_cv.left_side.language_level_elementary');
376
377
  case 3:
377
- return 'Pré-intermediário';
378
+ return this.$t('user_cv.left_side.language_level_pre_intermediate');
378
379
  case 4:
379
- return 'Intermediário';
380
+ return this.$t('user_cv.left_side.language_level_intermediate');
380
381
  case 5:
381
- return 'Intermediário Superior';
382
+ return this.$t('user_cv.left_side.language_level_upper_intermediate');
382
383
  case 6:
383
- return 'Avançado';
384
+ return this.$t('user_cv.left_side.language_level_advanced');
384
385
  case 7:
385
- return 'Fluente';
386
+ return this.$t('user_cv.left_side.language_level_fluent');
386
387
  default:
387
388
  return '';
388
389
  }
@@ -390,7 +391,7 @@ export default {
390
391
  treatPhone(phone) {
391
392
  if (phone) {
392
393
  if (phone == '0' || phone.length < 9 || !phone) {
393
- return 'não cadastrado';
394
+ return this.$t('user_cv.left_side.phone_not_registered');
394
395
  }
395
396
  }
396
397
 
@@ -399,7 +400,7 @@ export default {
399
400
  treatCellphone(cellphone) {
400
401
  if (cellphone) {
401
402
  if (cellphone == '0' || cellphone.length < 11 || !cellphone) {
402
- return 'não cadastrado';
403
+ return this.$t('user_cv.left_side.cellphone_not_registered');
403
404
  }
404
405
  }
405
406
 
@@ -418,12 +419,12 @@ export default {
418
419
  filters: {
419
420
  allDeficiencies(idList) {
420
421
  const typeDeficiency = {
421
- 1: 'Deficiência Física',
422
- 2: 'Deficiência Visual',
423
- 3: 'Deficiência Mental',
424
- 4: 'Deficiência Auditiva',
425
- 5: 'Deficiência Fonológica',
426
- 6: 'Deficiência Múltipla'
422
+ 1: this.$t('user_cv.left_side.disability_physical'),
423
+ 2: this.$t('user_cv.left_side.disability_visual'),
424
+ 3: this.$t('user_cv.left_side.disability_mental'),
425
+ 4: this.$t('user_cv.left_side.disability_auditory'),
426
+ 5: this.$t('user_cv.left_side.disability_phonological'),
427
+ 6: this.$t('user_cv.left_side.disability_multiple')
427
428
  };
428
429
 
429
430
  return idList && idList.length && idList.map(id => typeDeficiency[id] || null).filter(id => id).join(' | ') || '';
@@ -442,7 +443,6 @@ export default {
442
443
  }
443
444
  };
444
445
  </script>
445
-
446
446
  <style lang="scss" scoped>
447
447
  @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
448
448
 
@@ -499,7 +499,7 @@ export default {
499
499
  display: flex;
500
500
  flex-direction: column;
501
501
  align-items: center;
502
-
502
+
503
503
  .avatar {
504
504
  width: initial!important;
505
505
  height: initial!important;