Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

languages-schema.js 1.1 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  1. module.exports = {
  2. properties: {
  3. name: {
  4. required: true,
  5. description: 'the English name',
  6. type: 'string'
  7. },
  8. nativeName: {
  9. description: 'the native name',
  10. type: 'string'
  11. },
  12. code: {
  13. required: true,
  14. description: 'the code used in the URL',
  15. type: 'string',
  16. minLength: 2,
  17. maxLength: 2
  18. },
  19. dir: {
  20. required: true,
  21. description: 'the local relative path to files in this language',
  22. type: 'string'
  23. },
  24. // https://support.google.com/webmasters/answer/189077
  25. // https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
  26. // http://unicode.org/iso15924/iso15924-codes.html
  27. hreflang: {
  28. required: true,
  29. description: 'the ISO 639-1, ISO 3166-1 Alpha 2, or ISO 15924 language code',
  30. type: 'string',
  31. minLength: 2
  32. },
  33. redirectPatterns: {
  34. description: 'array of regular expressions used for redirecting incorrect URLs',
  35. type: 'array'
  36. },
  37. wip: {
  38. description: 'boolean indicating whether translations are incomplete',
  39. type: 'boolean'
  40. }
  41. }
  42. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...