Skip to content

Commit

Permalink
fix(messages): add some missing messages
Browse files Browse the repository at this point in the history
  • Loading branch information
evansiroky committed Sep 19, 2018
1 parent 4819010 commit 2e1651f
Show file tree
Hide file tree
Showing 4 changed files with 212 additions and 2 deletions.
70 changes: 70 additions & 0 deletions i18n/english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ components:
secretKey: Secret Key
fares: Fares
fetchElevationUS: Fetch Elevation
save: Save
stationTransfers: Sta. Transfers
subwayAccessTime: Subway Access Time
title: Build Config
Expand Down Expand Up @@ -232,6 +233,71 @@ components:
status: Status
timestamp: File Timestamp
version: version
GeneralSettings:
confirmDelete: Are you sure you want to delete this project? This action cannot be undone and all feed sources and their versions will be permanently deleted.
deleteProject: Delete Project?
deployment:
buildConfig:
elevationBucket:
accessKey: Access Key
bucketName: S3 Bucket Name
secretKey: Secret Key
fares: Fares
fetchElevationUS: Fetch Elevation
stationTransfers: Sta. Transfers
subwayAccessTime: Subway Access Time
title: Build Config
osm:
bounds: Custom Extract Bounds
custom: Use Custom Extract Bounds
gtfs: Use GTFS-Derived Extract Bounds
title: OSM Extract
otpServers:
$index:
admin: Admin access only?
delete: Remove
internalUrl: Internal URLs
name: Name
namePlaceholder: Production
publicUrl: Public URL
s3Bucket: S3 bucket name
new: Add server
serverPlaceholder: Server name
title: Servers
routerConfig:
brandingUrlRoot: Branding URL Root
carDropoffTime: Car Dropoff Time
numItineraries: '# of itineraries'
requestLogFile: Request log file
stairsReluctance: Stairs Reluctance
title: Router Config
updaters:
$index:
defaultAgencyId: Default agency ID
frequencySec: Frequency (in seconds)
sourceType: Source type
type: Type
url: URL
new: Add updater
title: Real-time updaters
placeholder: Updater name
walkSpeed: Walk Speed
title: Deployment
general:
location:
boundingBox: 'Bounding box (W,S,E,N)'
defaultLanguage: Default language
defaultLocation: 'Default location (lat, lng)'
defaultTimeZone: Default time zone
title: Location
name: Project name
title: General
updates:
autoFetchFeeds: Auto fetch feed sources?
title: Updates
rename: Rename
save: Save
title: Settings
GtfsValidationExplorer:
accessibilityValidation: Accessibility Explorer
table:
Expand Down Expand Up @@ -348,6 +414,10 @@ components:
updates:
autoFetchFeeds: Auto fetch feed sources?
title: Updates
project:
cannotFetchFeeds: Cannot fetch feeds
feeds: Feeds
permissions: Permissions
rename: Rename
save: Save
title: Settings
Expand Down
70 changes: 70 additions & 0 deletions i18n/espanol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ components:
secretKey: Secret Key
fares: Fares
fetchElevationUS: Fetch Elevation
save: Save
stationTransfers: Sta. Transfers
subwayAccessTime: Subway Access Time
title: Build Config
Expand Down Expand Up @@ -231,6 +232,71 @@ components:
status: Status
timestamp: File Timestamp
version: version
GeneralSettings:
confirmDelete: Are you sure you want to delete this project? This action cannot be undone and all feed sources and their versions will be permanently deleted.
deleteProject: Delete Project?
deployment:
buildConfig:
elevationBucket:
accessKey: Access Key
bucketName: S3 Bucket Name
secretKey: Secret Key
fares: Fares
fetchElevationUS: Fetch Elevation
stationTransfers: Sta. Transfers
subwayAccessTime: Subway Access Time
title: Build Config
osm:
bounds: Custom Extract Bounds
custom: Use Custom Extract Bounds
gtfs: Use GTFS-Derived Extract Bounds
title: OSM Extract
otpServers:
$index:
admin: Admin access only?
delete: Remove
internalUrl: Internal URLs
name: Name
namePlaceholder: Production
publicUrl: Public URL
s3Bucket: S3 bucket name
new: Add server
serverPlaceholder: Server name
title: Servers
routerConfig:
brandingUrlRoot: Branding URL Root
carDropoffTime: Car Dropoff Time
numItineraries: '# of itineraries'
requestLogFile: Request log file
stairsReluctance: Stairs Reluctance
title: Router Config
updaters:
$index:
defaultAgencyId: Default agency ID
frequencySec: Frequency (in seconds)
sourceType: Source type
type: Type
url: URL
new: Add updater
title: Real-time updaters
placeholder: Updater name
walkSpeed: Walk Speed
title: Deployment
general:
location:
boundingBox: 'Bounding box (W,S,E,N)'
defaultLanguage: Default language
defaultLocation: 'Default location (lat, lng)'
defaultTimeZone: Default time zone
title: Location
name: Project name
title: General
updates:
autoFetchFeeds: Auto fetch feed sources?
title: Updates
rename: Rename
save: Save
title: Settings
GtfsValidationExplorer:
accessibilityValidation: Accessibility Explorer
table:
Expand Down Expand Up @@ -347,6 +413,10 @@ components:
updates:
autoFetchFeeds: Auto fetch feed sources?
title: Updates
project:
cannotFetchFeeds: Cannot fetch feeds
feeds: Feeds
permissions: Permissions
rename: Rename
save: Save
title: Settings
Expand Down
70 changes: 70 additions & 0 deletions i18n/francais.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ components:
title: Real-time updaters
placeholder: Updater name
walkSpeed: Walk Speed
save: Save
title: Deployment
DeploymentVersionsTable:
dateRetrieved: Date Retrieved
Expand Down Expand Up @@ -230,6 +231,71 @@ components:
status: Status
timestamp: File Timestamp
version: version
GeneralSettings:
confirmDelete: Are you sure you want to delete this project? This action cannot be undone and all feed sources and their versions will be permanently deleted.
deleteProject: Delete Project?
deployment:
buildConfig:
elevationBucket:
accessKey: Access Key
bucketName: S3 Bucket Name
secretKey: Secret Key
fares: Fares
fetchElevationUS: Fetch Elevation
stationTransfers: Sta. Transfers
subwayAccessTime: Subway Access Time
title: Build Config
osm:
bounds: Custom Extract Bounds
custom: Use Custom Extract Bounds
gtfs: Use GTFS-Derived Extract Bounds
title: OSM Extract
otpServers:
$index:
admin: Admin access only?
delete: Remove
internalUrl: Internal URLs
name: Name
namePlaceholder: Production
publicUrl: Public URL
s3Bucket: S3 bucket name
new: Add server
serverPlaceholder: Server name
title: Servers
routerConfig:
brandingUrlRoot: Branding URL Root
carDropoffTime: Car Dropoff Time
numItineraries: '# of itineraries'
requestLogFile: Request log file
stairsReluctance: Stairs Reluctance
title: Router Config
updaters:
$index:
defaultAgencyId: Default agency ID
frequencySec: Frequency (in seconds)
sourceType: Source type
type: Type
url: URL
new: Add updater
title: Real-time updaters
placeholder: Updater name
walkSpeed: Walk Speed
title: Deployment
general:
location:
boundingBox: 'Bounding box (W,S,E,N)'
defaultLanguage: Default language
defaultLocation: 'Default location (lat, lng)'
defaultTimeZone: Default time zone
title: Location
name: Project name
title: General
updates:
autoFetchFeeds: Auto fetch feed sources?
title: Updates
rename: Rename
save: Save
title: Settings
GtfsValidationExplorer:
accessibilityValidation: Accessibility Explorer
table:
Expand Down Expand Up @@ -346,6 +412,10 @@ components:
updates:
autoFetchFeeds: Auto fetch feed sources?
title: Updates
project:
cannotFetchFeeds: Cannot fetch feeds
feeds: Feeds
permissions: Permissions
rename: Rename
save: Save
title: Settings
Expand Down
4 changes: 2 additions & 2 deletions scripts/lint-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ languages.forEach(langFile => {
messages[langFile] = safeLoad(fs.readFileSync(path.join('i18n', langFile)))
})



/**
* Recursively explore a directory looking for .js files to analyze
*/
Expand Down Expand Up @@ -151,4 +149,6 @@ reconcileFoundObject(foundMessages)

if (atLeastOneErrorFound) {
process.exit(2)
} else {
console.log('no errors found with messages!')
}

0 comments on commit 2e1651f

Please sign in to comment.