Repository: gobuffalo/buffalo (language: go)

Issue:
Missing i18n import with --api flag
### Description
Using the latest 0.16.8 generating an api with --api result in a project that cannot be compiled once you add a resource to the project

### Steps to Reproduce the Problem

  1. buffalo new coke --api
  2. buffalo g resource profile name
  3. buffalo dev

result:
generatedApps/seizetst02/models
generatedApps/seizetst02/actions
#generatedApps/seizetst02/actions
actions/profiles.go:133:30: undefined: T
actions/profiles.go:189:30: undefined: T
actions/profiles.go:223:30: undefined: T
buffalo: 2020/05/04 10:14:25 === Error! ===
buffalo: 2020/05/04 10:14:25 === exit status 2

###  Solution
In app.go add the following missing line:
import i18n "github.com/gobuffalo/mw-i18n"
var T *i18n.Translator //missing

Note: thosse lines are generated in regular Html app (non --api)


Discussion / hints:

Fix patch:
diff --git a/Dockerfile.build b/Dockerfile.build
index 00973c48c..3172b822b 100644
--- a/Dockerfile.build
+++ b/Dockerfile.build
@@ -32,7 +32,7 @@ RUN npm install -g --no-progress yarn \
 # Install golangci
 RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.24.0
 # Installing buffalo binary
-RUN curl -sf https://gobinaries.com/gobuffalo/buffalo/buffalo@v0.16.19 | sh 
+RUN curl -sf https://gobinaries.com/gobuffalo/buffalo/buffalo@v0.16.20 | sh 
 RUN go get github.com/gobuffalo/buffalo-pop/v2
 RUN buffalo version
 
diff --git a/Dockerfile.slim.build b/Dockerfile.slim.build
index e1a020908..1e16f9701 100644
--- a/Dockerfile.slim.build
+++ b/Dockerfile.slim.build
@@ -17,7 +17,7 @@ RUN npm i -g --no-progress yarn \
     && yarn config set yarn-offline-mirror-pruning true
 
 # Pulling docker binary from releases
-RUN curl -sf https://gobinaries.com/gobuffalo/buffalo/buffalo@v0.16.19 | sh 
+RUN curl -sf https://gobinaries.com/gobuffalo/buffalo/buffalo@v0.16.20| sh 
 RUN go get github.com/gobuffalo/buffalo-pop/v2
 RUN buffalo version
 
diff --git a/route_mappings.go b/route_mappings.go
index e5c9429a7..1e860b018 100644
--- a/route_mappings.go
+++ b/route_mappings.go
@@ -236,6 +236,7 @@ func (a *App) Group(groupPath string) *App {
 	g.Name = g.Prefix
 
 	g.router = a.router
+	g.RouteNamer = a.RouteNamer
 	g.Middleware = a.Middleware.clone()
 	g.ErrorHandlers = a.ErrorHandlers
 	g.root = a
diff --git a/runtime/version.go b/runtime/version.go
index d8ab7a115..a287a7f10 100644
--- a/runtime/version.go
+++ b/runtime/version.go
@@ -1,4 +1,4 @@
 package runtime
 
 // Version is the current version of the buffalo binary
-var Version = "v0.16.19"
+var Version = "v0.16.20"


Test patch: