@glissandoo/lib 1.16.8 → 1.16.10

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.
package/lang/ca.json CHANGED
@@ -213,12 +213,12 @@
213
213
  "practices.players.add.title": "Nous assajos",
214
214
  "practices.players.remove.text": "Us han eliminat d'una sèrie d'assajos entre {date:event.0.datetime:shortDate} i {date:event.1.datetime:shortDate}",
215
215
  "practices.players.remove.title": "Assajos eliminats",
216
- "repertoireTags.1": "1st",
217
- "repertoireTags.2": "2nd",
218
- "repertoireTags.3": "3rd",
219
- "repertoireTags.4": "4th",
216
+ "repertoireTags.1": "1r",
217
+ "repertoireTags.2": "2n",
218
+ "repertoireTags.3": "3r",
219
+ "repertoireTags.4": "4t",
220
220
  "repertoireTags.principal": "Principal",
221
- "sections.all": "All",
221
+ "sections.all": "Tots",
222
222
  "theme.claim.new.text": "{string:user.0.displayName} ha reclamat la partitura de {instrument:extra.instrumentId} de l'obra \"{string:extra.title}\"",
223
223
  "theme.claim.new.title": "Han demanat una partitura",
224
224
  "theme.claim.update.text": "S'afegit la partitura de {instrument:extra.instrumentId} de l'obra \"{string:extra.title}\"",
package/lang/de.json CHANGED
@@ -213,12 +213,12 @@
213
213
  "practices.players.add.title": "Neue Proben",
214
214
  "practices.players.remove.text": "Du wurdest aus einer Reihe von Proben von {date:event.0.datetime:shortDate} bis {date:event.1.datetime:shortDate} entfernt.",
215
215
  "practices.players.remove.title": "Die Proben wurden entfernt",
216
- "repertoireTags.1": "1st",
217
- "repertoireTags.2": "2nd",
218
- "repertoireTags.3": "3rd",
219
- "repertoireTags.4": "4th",
220
- "repertoireTags.principal": "Principal",
221
- "sections.all": "All",
216
+ "repertoireTags.1": "1.",
217
+ "repertoireTags.2": "2.",
218
+ "repertoireTags.3": "3.",
219
+ "repertoireTags.4": "4.",
220
+ "repertoireTags.principal": "Haupt",
221
+ "sections.all": "Alle",
222
222
  "theme.claim.new.text": "{string:user.0.displayName} beanspruchte die Noten \nvon {instrument:extra.instrumentld} des Stücks \"{string:extra.title}“",
223
223
  "theme.claim.new.title": "Noten wurden angefordert",
224
224
  "theme.claim.update.text": "{instrument:extra.instrumentld} -Noten des Stücks \"{string:extra.title}\" wurden hinzugefügt.",
package/lang/es.json CHANGED
@@ -213,12 +213,12 @@
213
213
  "practices.players.add.title": "Nuevos ensayos",
214
214
  "practices.players.remove.text": "Has sido eliminado de una serie de ensayos entre {date:event.0.datetime:shortDate} y {date:event.1.datetime:shortDate}",
215
215
  "practices.players.remove.title": "Ensayos eliminados",
216
- "repertoireTags.1": "1st",
217
- "repertoireTags.2": "2nd",
218
- "repertoireTags.3": "3rd",
219
- "repertoireTags.4": "4th",
216
+ "repertoireTags.1": "",
217
+ "repertoireTags.2": "",
218
+ "repertoireTags.3": "",
219
+ "repertoireTags.4": "",
220
220
  "repertoireTags.principal": "Principal",
221
- "sections.all": "All",
221
+ "sections.all": "Todos",
222
222
  "theme.claim.new.text": "{string:user.0.displayName} ha reclamado la partitura de {instrument:extra.instrumentId} de la obra \"{string:extra.title}\"",
223
223
  "theme.claim.new.title": "Han pedido una partitura",
224
224
  "theme.claim.update.text": "Se ha añadido la partitura de {instrument:extra.instrumentId} de la obra \"{string:extra.title}\"",
package/lang/eu.json CHANGED
@@ -213,12 +213,12 @@
213
213
  "practices.players.add.title": "Entsegu berriak",
214
214
  "practices.players.remove.text": "{date:event.0.datetime:shortDate} eta {date:event.1.datetime:shortDate} egunen arteko entsegu batzuetatik ezabatua izan zara",
215
215
  "practices.players.remove.title": "Bertan behera utzi diren entseguak",
216
- "repertoireTags.1": "1st",
217
- "repertoireTags.2": "2nd",
218
- "repertoireTags.3": "3rd",
219
- "repertoireTags.4": "4th",
220
- "repertoireTags.principal": "Principal",
221
- "sections.all": "All",
216
+ "repertoireTags.1": "1.a",
217
+ "repertoireTags.2": "2.a",
218
+ "repertoireTags.3": "3.a",
219
+ "repertoireTags.4": "4.a",
220
+ "repertoireTags.principal": "Lehen",
221
+ "sections.all": "Guztiak",
222
222
  "theme.claim.new.text": "{string:user.0.displayName} erabiltzaileak \"{string:extra.title}\" obrako {instrument:extra.instrumentId} instrumentuaren partitura eskatu du",
223
223
  "theme.claim.new.title": "Partitura bat eskatu da",
224
224
  "theme.claim.update.text": "{instrument:extra.instrumentId} instrumentuaren partitura gehitu da \"{string:extra.title}\" obrarako",
package/lang/gl.json CHANGED
@@ -213,12 +213,12 @@
213
213
  "practices.players.add.title": "Novas probas",
214
214
  "practices.players.remove.text": "Elimináronte dunha serie de ensaios entre {date:event.0.datetime:shortDate} e {date:event.1.datetime:shortDate}",
215
215
  "practices.players.remove.title": "Quitáronse os ensaios",
216
- "repertoireTags.1": "1st",
217
- "repertoireTags.2": "2nd",
218
- "repertoireTags.3": "3rd",
219
- "repertoireTags.4": "4th",
216
+ "repertoireTags.1": "",
217
+ "repertoireTags.2": "",
218
+ "repertoireTags.3": "",
219
+ "repertoireTags.4": "",
220
220
  "repertoireTags.principal": "Principal",
221
- "sections.all": "All",
221
+ "sections.all": "Todos",
222
222
  "theme.claim.new.text": "{string:user.0.displayName} ha reclamado la partitura de {instrument:extra.instrument} de la obra \"{string:extra.title}\"",
223
223
  "theme.claim.new.title": "Han pedido una partitura",
224
224
  "theme.claim.update.text": "Se ha añadido la partitura de {instrument:extra.instrument} de la obra \"{string:extra.title}\"",
package/lang/pt.json CHANGED
@@ -213,12 +213,12 @@
213
213
  "practices.players.add.title": "Novos ensaios",
214
214
  "practices.players.remove.text": "Você foi removido de vários ensaios entre {date:event.0.datetime:shortDate} e {date:event.1.datetime:shortDate}",
215
215
  "practices.players.remove.title": "Ensaios removidos",
216
- "repertoireTags.1": "1st",
217
- "repertoireTags.2": "2nd",
218
- "repertoireTags.3": "3rd",
219
- "repertoireTags.4": "4th",
216
+ "repertoireTags.1": "",
217
+ "repertoireTags.2": "",
218
+ "repertoireTags.3": "",
219
+ "repertoireTags.4": "",
220
220
  "repertoireTags.principal": "Principal",
221
- "sections.all": "All",
221
+ "sections.all": "Todos",
222
222
  "theme.claim.new.text": "{string:user.0.displayName} uma revisão em {instrument:extra.instrumentId} para “{string:extra.title}”",
223
223
  "theme.claim.new.title": "Uma revisão da partitura foi enviada por um músico",
224
224
  "theme.claim.update.text": "A partitura {instrument:extra.instrumentId} da obra “{string:extra.title}” foi adicionada.",
@@ -2,7 +2,7 @@ import { DocumentReference, DocumentSnapshot } from '@google-cloud/firestore';
2
2
  import { PlansGroup } from '../../helpers/plans';
3
3
  import { LanguagesTypes } from '../../lang';
4
4
  import GroupBasic from './basic';
5
- import { GroupData, GroupStatus, SocialNetwork, GroupRepertoireTag } from './types';
5
+ import { GroupData, GroupRepertoireTag, GroupStatus, SocialNetwork } from './types';
6
6
  export default class Group extends GroupBasic<GroupData> {
7
7
  constructor(doc: DocumentSnapshot, lang?: LanguagesTypes);
8
8
  get owner(): DocumentReference;
@@ -65,5 +65,6 @@ export default class Group extends GroupBasic<GroupData> {
65
65
  get repertoireTagsList(): (GroupRepertoireTag & {
66
66
  id: string;
67
67
  })[];
68
+ getRepertoireTagName(id: string): string | null;
68
69
  getRepertoireTagNameTranslator(): (id: string, repertoireTags?: Record<string, GroupRepertoireTag>, lang?: LanguagesTypes) => string | null;
69
70
  }
@@ -168,6 +168,12 @@ class Group extends basic_1.default {
168
168
  get repertoireTagsList() {
169
169
  return utils_1.objToArray(this.repertoireTags);
170
170
  }
171
+ getRepertoireTagName(id) {
172
+ if (!(id in this.repertoireTags))
173
+ return null;
174
+ const tag = this.repertoireTags[id];
175
+ return tag.default ? lang_1.getTranslation(tag.title, this.lang) : tag.title;
176
+ }
171
177
  getRepertoireTagNameTranslator() {
172
178
  return (id, repertoireTags = { ...this.repertoireTags }, lang = this.lang) => {
173
179
  if (!(id in repertoireTags))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.16.8",
3
+ "version": "1.16.10",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",